Node DeWalt: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Wiring and technical data)
Regel 14: Regel 14:
 
Both expect AC/230 volt. The green LED is wired directly to the PSU. The blue LED has the same role as the Aart led in the other nodes. And the Red LED is swiched in software and should follow voltage detect on the Optocoupler input.
 
Both expect AC/230 volt. The green LED is wired directly to the PSU. The blue LED has the same role as the Aart led in the other nodes. And the Red LED is swiched in software and should follow voltage detect on the Optocoupler input.
  
Code in [[https://github.com/dirkx/AccesSystem/blob/master/lib-arduino/ACNode/examples/JointerNode/JointerNode.ino]]/
+
Code in [[https://github.com/dirkx/AccesSystem/blob/master/lib-arduino/ACNode/examples/DeWaltNode/DeWaltNode.ino]].
  
 
Current mac address is '''A0:20:A6:04:5A:45''' -- the node is on wifi, so no switch port assigned.
 
Current mac address is '''A0:20:A6:04:5A:45''' -- the node is on wifi, so no switch port assigned.

Versie van 28 dec 2018 om 19:27

DeWalt node/verklikker

Kleine ESP6822 node die monitored of een machine aangelaten/gebruikt wordt. Deze specifieke iteratie zit op de GroteStofAfzuiger - en rapporteert of het ding in het stopcontact zit en of ze aan staat/draait.

Planning is om ze op de compressors en afzuigers te hebben (en andere dingen die vaak aangelaten worden).

Wiring and technical data

DeWalt node/verklikker - wiring

The 4 screw terminals are AC (2x) and Optocoupler detect (2x). AC is nearest to the PSU; the inputs are 'under' the opto-coupler wires (the resistors are on the back of the board).

The fuse is a 800 mA fast (it should probably be a 50 or 100 mA slow).

Both expect AC/230 volt. The green LED is wired directly to the PSU. The blue LED has the same role as the Aart led in the other nodes. And the Red LED is swiched in software and should follow voltage detect on the Optocoupler input.

Code in [[1]].

Current mac address is A0:20:A6:04:5A:45 -- the node is on wifi, so no switch port assigned.

Opto electronics

Wiring of the 3 opto couplers

Typical log

  {
     "node": "dewalt",
     "machine": "dewalt",
     "maxMqtt": 1258,
     "id": "285253",
     "ip": "<",
     "net": "WiFi",
     "mac": "A0:20:A6:04:5A:45",
     "beat": 0,
     "approve": 0,
     "deny": 0,
     "requests": 0,
     "mqtt_reconnects": 2,
     "loop_rate": 22560.2,
     "heap_free": 27104,
     "state": "Powered - but idle",
     "powered_time": 271192,
     "running_time": 157,
     "ota": true,
     "acstate": true
  }