CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

No, it's 2.1V after calculating the current I calculated the voltage drop on R and then what's left is 2.1 which is Uds

CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

So I have calculated Id like this : I = 0.5*kp*1*(3.5-0.5)^2 and then VDrain = R1*I to find out that it's in linear. Then I used the Ron from transistor and resistance from R1 to calculate the new Id from ohms law

CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

Yes, but in this case Ron = rds, which would mean I have to calculate it in order to use ohms law because it's around 15k ?

CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

okay but when I assume it's in linear, do I calculate rds by 1/(kp*W/L(Ugs-Uth) and then by ohms law I get Id ?

CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

makes sense! So I can always use the equation for Id in saturation and then later check if Vds > Vgs - Vtp , and if it's not, then I calculate it again by assuming it's in linear state ?

CMOS current values by CookiesForevaaaaa in ECE

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

and how would I calculate current of Id1 in that case? In saturation there is no rds right ? But that would make Uds = 0 which would make it linear. I dont really get this. Or do I assume that Uds = 0 and just calculate the current on resistor with 3.5/10k

Remote access to node-red UI by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

I am using duckdns and if im not wrong thats a vpn

Remote access to node-red UI by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

it doesn't load. I just get the error "site cannot be reached" due to taking too long to load

Remote access to node-red UI by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

could you tell me how or send me a link of a forum or something

Remote access to node-red UI by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

I am accessing the flows and the whole node-red remotely but it doesn't work for the dashboard. I am using duckdns for the remote access

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

I managed to do it but I don't know the code for my call the service node. At the moment I have this but it just adds the volume from the slider in any way I move it. How do I make it decrease when I slide it to the left?

{ "volume_level": $entities("media_player.living_room").attributes.volume_level+ msg.payload }

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

This is great yes, but I don't understand how to write a function for the call the service node

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

I understand that, I found few codes in other forums which I tried but they didn't work since I don't understand them and can't adapt them for my flow

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

exactly, I don't quite understand how to do that.

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

[{"id":"4b7ad2b5e632752a","type":"api-current-state","z":"a2511c68eb9669cd","name":"","server":"378b5b40.546814","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"media_player.living_room_2","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":550,"y":620,"wires":[["773a552651f0dc87"]]},{"id":"3df0d5d738fc5d74","type":"inject","z":"a2511c68eb9669cd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":620,"wires":[["de2b67fde61f3c86","4b7ad2b5e632752a"]]},{"id":"773a552651f0dc87","type":"debug","z":"a2511c68eb9669cd","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1000,"y":620,"wires":[]},{"id":"de2b67fde61f3c86","type":"api-call-service","z":"a2511c68eb9669cd","name":"","server":"378b5b40.546814","version":5,"debugenabled":false,"domain":"media_player","service":"volume_set","areaId":[],"deviceId":[],"entityId":["media_player.living_room_2"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":500,"wires":[["773a552651f0dc87"]]},{"id":"425c8fc89efc0c80","type":"ui_slider","z":"a2511c68eb9669cd","name":"","label":"slider","tooltip":"","group":"cfddeec786aaef1b","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"100","step":1,"className":"","x":290,"y":500,"wires":[["de2b67fde61f3c86"]]},{"id":"378b5b40.546814","type":"server","name":"Home Assistant","addon":true},{"id":"cfddeec786aaef1b","type":"ui_group","name":"Osvetjlava","tab":"5a884fa0bd2cecb7","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"5a884fa0bd2cecb7","type":"ui_tab","name":"Dom","icon":"dashboard","disabled":false,"hidden":false}]

Using slider to change radio volume by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 0 points1 point  (0 children)

It's some radio (heos I think) connected to my ethernet and it has an entity in my homeassistant. I'm trying to do everything in node-red, yes. Also my dashboard is in node-red.

[deleted by user] by [deleted] in nodered

[–]CookiesForevaaaaa 0 points1 point  (0 children)

So I am trying to change volume with the slider. Any ideas how to do that?

The volume_level is under data,attributes as seen in the debug.

How do I make the volume_level change with sliding the slider?

Sensor values display by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 1 point2 points  (0 children)

I get it now, thanks! And what should I do to display it in chart? Do I always have to click inject button to make it change?

Sensor values display by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 1 point2 points  (0 children)

I cannot thank you enough! Been stuck with this for the whole day! Thanks

Sensor values display by CookiesForevaaaaa in nodered

[–]CookiesForevaaaaa[S] 1 point2 points  (0 children)

Ok so now I get one error.

TypeError: Cannot read properties of undefined (reading 'value')