Node Lights Out: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Update September 2019)
 
(12 tussenliggende versies door 4 gebruikers niet weergegeven)
Regel 1: Regel 1:
[[Category:ACNode]][[Category:RunningTheSpaceDocs]]
+
[[Category:Nodes & network devices]]
 
 
 
[[Bestand:NodeLightsOut-outside.jpg|miniatuur|Lichten node/verklikker (photo out of date)]]
 
[[Bestand:NodeLightsOut-outside.jpg|miniatuur|Lichten node/verklikker (photo out of date)]]
  
Regel 11: Regel 10:
 
All 3 expect AC/230 volt. The RED led on the front is the 'AartLED'.
 
All 3 expect AC/230 volt. The RED led on the front is the 'AartLED'.
  
Code in [[https://github.com/dirkx/AccesSystem/blob/master/lib-arduino/ACNode/examples/LightsOutNode/LightsOutNode.ino]]/
+
Code in [[https://github.com/dirkx/AccesSystem/blob/master/lib-arduino/ACNode/examples/LightsOutNode/LightsOutNode.ino "het git repo van de Makerspace".]].
  
 
Current mac address is '''3C:71:BF:10:62:A7''' -- wired to the top patch panel, port 23.  It is currently connected by a yellow cable to the top switch; port 23 (auto-negotiation, no further settings)
 
Current mac address is '''3C:71:BF:10:62:A7''' -- wired to the top patch panel, port 23.  It is currently connected by a yellow cable to the top switch; port 23 (auto-negotiation, no further settings)
Regel 17: Regel 16:
 
= Update September 2019 =
 
= Update September 2019 =
  
 +
[[Bestand:ESP32-POE-connector.jpg|miniatuur|ESP32 PoE connector olimex]]
 
The AC voltage resistors/optocouplers have been moved out of the low voltage electronics box; and now reside in/behind the two light switches. With just 2 and 4 wires (gnd/E and signal/C of the optocouplers) going to the grey box.  
 
The AC voltage resistors/optocouplers have been moved out of the low voltage electronics box; and now reside in/behind the two light switches. With just 2 and 4 wires (gnd/E and signal/C of the optocouplers) going to the grey box.  
  
 
White is the gnd, the colours (brown, orange, green) are the signal wires.
 
White is the gnd, the colours (brown, orange, green) are the signal wires.
  
Furthermore GPIO 5 has been wired to a 433 Mhz receiver - for [[MainsSensor|our radio based mains-monitoring]]. As the digital out is 5volt - there is a simple 3k3/1k8 voltage divider to bring the signal to the 3v3 that the ESPs GPIO likes.
+
Furthermore GPIO 34 (was 5) has been wired to a 433 Mhz receiver - for [[Mains sensor|our radio based mains-monitoring]]. As the digital out is 5volt - there is a simple 3k3/1k8 voltage divider to bring the signal to the 3v3 that the ESPs GPIO likes.
  
 
= Building wiring =
 
= Building wiring =
  
Note that the building wiring is a bit funny - an earth wire is used as a black-switch phase wire in the leftmost switch.
+
Note that the building wiring is a bit funny - an earth wire is used as a black-switch phase wire in the leftmost switch. Talk ''first'' to the trustees if you want to fix it - as this is a key part of building relative to the agreements made with the landlord.
  
 
= Opto electronics =
 
= Opto electronics =

Huidige versie van 16 nov 2024 om 23:15

Lichten node/verklikker (photo out of date)

[OLIMEX PoE] gebaseerde node die kijkt naar de 3 AC netten van het licht.

Wiring and technical data

The 6 screw terminals are Optocoupler detect (2x3) of AC.

All 3 expect AC/230 volt. The RED led on the front is the 'AartLED'.

Code in ["het git repo van de Makerspace".].

Current mac address is 3C:71:BF:10:62:A7 -- wired to the top patch panel, port 23. It is currently connected by a yellow cable to the top switch; port 23 (auto-negotiation, no further settings)

Update September 2019

ESP32 PoE connector olimex

The AC voltage resistors/optocouplers have been moved out of the low voltage electronics box; and now reside in/behind the two light switches. With just 2 and 4 wires (gnd/E and signal/C of the optocouplers) going to the grey box.

White is the gnd, the colours (brown, orange, green) are the signal wires.

Furthermore GPIO 34 (was 5) has been wired to a 433 Mhz receiver - for our radio based mains-monitoring. As the digital out is 5volt - there is a simple 3k3/1k8 voltage divider to bring the signal to the 3v3 that the ESPs GPIO likes.

Building wiring

Note that the building wiring is a bit funny - an earth wire is used as a black-switch phase wire in the leftmost switch. Talk first to the trustees if you want to fix it - as this is a key part of building relative to the agreements made with the landlord.

Opto electronics

Wiring of the 3 opto couplers

Typical log

AC1 to AC3 are the OPTO couplers state; True is off (there is a pull up at work), False is AC voltage detected.

    {
      "node": "lights",
      "machine": "lights",
      "maxMqtt": 768,
      "id": "a46210bf713c",
      "ip": "192.168.3.173",
      "net": "UTP",
      "mac": "3C:71:BF:10:62:A7",
      "beat": 0,
      "approve": 0,
      "deny": 0,
      "requests": 0,
      "cache_hit": 0,
      "cache_miss": 0,
      "mqtt_reconnects": 1,
      "loop_rate": 11137.78,
      "coreTemp": 72.22222,
      "heap_free": 223272,
      "state": "Powered - no lights",
      "powered_time": 1195,
      "running_time": 0,
      "ota": true,
      "acstate1": true,
      "acstate2": true,
      "acstate3": true
   }