NodeWoodlathe: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Configuratie)
 
(16 tussenliggende versies door 3 gebruikers niet weergegeven)
Regel 1: Regel 1:
== Gebruik ==
+
[[Categorie:Tool]][[Category:ACNode]]
 +
[[Bestand:Woodnode01.jpg|200px]]
 +
[[Bestand:Woodnode02.jpg|200px]]
 +
[[Bestand:Woodnode03.jpg|200px]]
 +
[[Bestand:Woodnode04.jpg|200px]]
  
De roe knop zet de node aan en uit. Direct na aanzetten gaat het groene lampje bovenop aan.  
+
PoE node voor the woodlathe based on a [[PowerNode White]].
  
[[Bestand:ACNodeWoodLatheVoorkant.jpg|300px]]
+
== Use ==
  
In het rode knopje zit een rood lampje. Dit gaat knipperen tijdens het opstarten (boot, DHCP, sync met de ACNode_Master. Als de node eenmaal opgestart wordt gloeit het lampje zacht en knippert het elke 2-3 seconden kort. Het opstarten duurt normaal gesproken tussen den 0.5 en 3 seconden.
+
When stationaly - led will flash briefly every few seconds. If it flashes faster - it is unhappy about something.
  
Hou nu een kaart voor de laser (onderste helft van het kastje). De rode led gaat even knipperen tijdens het toegang vragen.
+
Swipe your card at the bottom. LED wil come on solid (or flash rapidly during check or error).
  
Indien er een OK terug komt blijft het lampje helder branden - bij afwijzen knippert het lampje 3 seconden snel; en valt dan weer terug naar langzame, korte flitsen.  
+
Operate the machine with the red/green on-off button on the right end / near the legs.
  
Nadat de node aan is kan men de houtdraaibank aan en uit zetten met de knop op de houtdraaibank.
+
Press orange button once you are done to lock things. Note: the unit will '''refuse to power off while the machine is running'''. So first power off the machine with its own red/green button (press green). Then press the button on the node to `lock' it.
  
Na gebruik de houtdraaibank uitzetten en dan de acnode. Er zit een timeout op van 20 minuten.
+
== Trouble shooting ==
  
== Configuratie ==
+
See [[PowerNode White]] for details.
  
Indien er iets gout gaat  tijdens het opstarten gaat de Node in 'config' mode. De rode lamp knipperen dan; en de unit wordt een 'AP Accesspoint' met een captive portal en als naam '''ACNode CNF <mac-address>'''.
+
The log file is available on http://woodlathe.local/ or http://192.168.6.144/. One can also telnet to this address. Logs are also sent to MQTT and to Syslog at the firewall. Or connect a serial cable; but be sure to use a [[Galvanic USB isolator]].
  
[[Bestand:Exhaust-CP1.png|200px]]
+
== Configuration ==
  
De configuratie opties zijn als volgt:
+
The unit contains a PoE fed [[PowerNode White]] that is on Ethernet (LAN). It has a single relay that simply turns one of the phases (L) on and off. The button is wired to 'menu' and contains a LED. This LED is wired to 'ERR'. One of the feeding wires is strung through the Current coil. All this runs through the connector. The relay is 5Volt.
  
[[Bestand:Exhaust-CP2.png|200px]]
+
[[Bestand:Woodnode05.jpg|200px]]
 +
[[Bestand:Woodnode06.jpg|200px]]
  
# SSID - SSID van de makerspace tools netweork
+
The software can be found in ACNode its examples (in the Arduino IDE) or on [https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/lib-arduino/ACNode/examples/WoodLatheNode/WoodLatheNode.ino GitHub].
# Password - en het bijbehorende wachtwoord
 
# MQTT Server - space.makerspaceleiden.nl
 
# MQTT Poort - default is 1883.
 
# Logpath - normaalgespoken 'log' - anders iets van 'testlog' tijdens testen.
 
# topix prefix - 'test' voor tests, makerspace/ac voor productie.
 
# node name - de naam van de node (houtdraaibank)
 
# machine - de naan van het device wat bedient wordt (houtdraaibank).
 
# master node - normaalgesproken 'master' of iets van 'test-node' tijdens het testen.
 
# shared-secret - Voor testen 'ZeeSecret'.
 
  
Na 'save' indrukken volgt de bevestiging:
+
== Log ==
  
[[Bestand:Exhaust-CP3.png|200px]]
+
  Thu Jan 23 13:55:07 CET 2020 ac/log/woodlathe woodlathe {
 +
  {
 +
  "manual_poweroff": 0,
 +
  "idle_poweroff": 0,
 +
  "errors": 0,
 +
  "ota": true,
 +
  "node": "woodlathe",
 +
  "machine": "woodlathe",
 +
  "maxMqtt": 384,
 +
  "id": "887124a4ae30",
 +
  "ip": "192.168.6.144",
 +
  "net": "UTP",
 +
  "mac": "30:AE:A4:24:71:8B",
 +
  "beat": 1704134479,
 +
  "alive-uptime": 6600,
 +
  "approve": 1,
 +
  "deny": 0,
 +
  "requests": 1,
 +
  "cache_hit": 1,
 +
  "cache_miss": 0,
 +
  "cache_purge": 0,
 +
  "cache_update": 1,
 +
  "mqtt_reconnects": 1,
 +
  "loop_rate": 15.1384325,
 +
  "coreTemp": 53.33333333,
 +
  "heap_free": 168180,
 +
  "rfid_scans": 1,
 +
  "rfid_misses": 103951,
 +
  "rfid": "RFID-MFRC522",
 +
  "state": "Waiting for card, screen dark",
 +
  "seconds_in_state": [
 +
    0,
 +
    3,
 +
    0,
 +
    0,
 +
    0,
 +
    1244,
 +
    0,
 +
    0,
 +
    0,
 +
    5645,
 +
    0,
 +
    2,
 +
    3,
 +
    0
 +
  ],
 +
  "normal_poweroff": 1,
 +
  "fw": "ACNode/examples/WoodLatheNode/WoodLatheNode.ino Jan  1 2024 17:45:18"
 +
  }
  
Hierna kan men op de MQTT bus het volgende zien:
+
== History ==
  
{{{
+
Latest incarnation installed late 2023.
makerspace/ac/log/houtdraaibank (re)connected .....WoodLatheNode/esp12f-version/WoodLatheNode/WoodLatheNode.ino May 13 2017 17:53:33
 
makerspace/ac/master/houtdraaibank SIG/1.0 86b5d6.......395 000000000010 announce 192.168.6.196
 
makerspace/ac/log/master Node 'houtdraaibank' (re)subscribed; sending beat.
 
makerspace/ac/houtdraaibank/master SIG/1.00 e2e40b.....86cee 001494690841 beat
 
}}}
 
  
== Code, Schema en Werking ==
+
[[Bestand:Woodnode.jpg|miniatuur| Old node, no longer in use]]
 
+
[[Bestand:WoodnodeInside.jpg|miniatuur|Old node, no longer in use]]
De node bevat een ESP8266, een RFID lezern, een Relay, een Hall stroom sensor en een simpele voeding.
 
 
 
[[Bestand:ACNodeWoodLatheInner.jpg| 300px]]
 
 
 
De code staat in git:https://github.com/dirkx/AccesSystem/tree/master/WoodLatheNode/esp12f-version. Nodig zijn een Arduino 1.5 IDE of nieuwer; met de MQTT, EPS826 en WifiManager/OTA libraries. De (huidige) versie ondersteunt OTA.
 
 
 
De schakelaar voorop schakelt de 220v van de 5v voeding (dus niet de draaibank zelf). Het groene lampje zit direct over de 220v input van de voeding.
 
 
 
De draaibank wordt bediend via een dubbelpolig relay (maximaal 5A, 1000Watt) dat beide draden (L en N) schakelt. Het 5V relay wordt met behulp van een NPN transport bedient vanaf de (3v3) ESP; de gekozen pin (GPIO15) wordt tijdens het opstarten al laag gehouden door een weerstand (dit is ook de ESP boot select).
 
 
 
Het LEDje in de knop voorop wordt ook via een transistor geschakeld.
 
 
 
De stroom naar de draaibank loopt via een ACS 721 HALL current sensor; deze zit via een 5:1 weerstand netwerkje aan de analoge pin van de ESP8266. Hiermee is te zien of de draaibank aan staat.
 
 
 
De 5 voeding van de print loopt via een draadbrug in de connector van de draaibank. Dit betekend dat een en ander niet aangezet kan worden als de stekker los zit. Dit is omdat de pinnen van de steker onderop vrij 'bloot' zijn als de stekker er niet in zit.
 
 
 
[[Bestand:ACNodeWoodLatheRFID.jpg| 300px]]
 
 
 
De RFID scanner is afgeschermd. Dit bleek nodig.
 
 
 
 
 
== BUGS en Verbeteringen ==
 
 
 
Knopje voor forced config mode - zodat de unit niet in config mode schiet als er geen wifi is.
 
 
 
Rubber duck antenntetje.
 
 
 
Indien generiek te maken - een groter/zwaarder relays.
 
 
 
De 'Aart en Alex' truck met een power-and-hold 'on' - zodat de unit zichzelf kan uitzetten.
 
 
 
== BOM ==
 
 
 
BOM van rond de 25,- euro inclusief kast en wartels.
 
 
* Kastje, wartels, printkroonsteen (rond de € 12.00).
 
* 5 volt voeding (e.g. TSP-05 - €2.00 on AliExpress).
 
* EPS 8266 (e.g. Witty Cloud bordje - €3.50 including programmer).
 
* ACS 721 Hall sensor (rond de €1.00).
 
* 2 transistors; 5 weerstanden, 3 elco's, 1 diode,
 
* 5A DTPT relay, 5V coil. (rond de €2.00 tot €5.00).
 
* toggle button met rode LED (€0.70).
 
* groen neon lampje (€0.10).
 
 
 
== Gereedschappen ==
 
 
 
Geen speciaal gereedschap nodig.
 

Huidige versie van 1 jan 2024 om 21:03

Woodnode01.jpg Woodnode02.jpg Woodnode03.jpg Woodnode04.jpg

PoE node voor the woodlathe based on a PowerNode White.

Use

When stationaly - led will flash briefly every few seconds. If it flashes faster - it is unhappy about something.

Swipe your card at the bottom. LED wil come on solid (or flash rapidly during check or error).

Operate the machine with the red/green on-off button on the right end / near the legs.

Press orange button once you are done to lock things. Note: the unit will refuse to power off while the machine is running. So first power off the machine with its own red/green button (press green). Then press the button on the node to `lock' it.

Trouble shooting

See PowerNode White for details.

The log file is available on http://woodlathe.local/ or http://192.168.6.144/. One can also telnet to this address. Logs are also sent to MQTT and to Syslog at the firewall. Or connect a serial cable; but be sure to use a Galvanic USB isolator.

Configuration

The unit contains a PoE fed PowerNode White that is on Ethernet (LAN). It has a single relay that simply turns one of the phases (L) on and off. The button is wired to 'menu' and contains a LED. This LED is wired to 'ERR'. One of the feeding wires is strung through the Current coil. All this runs through the connector. The relay is 5Volt.

Woodnode05.jpg Woodnode06.jpg

The software can be found in ACNode its examples (in the Arduino IDE) or on GitHub.

Log

 Thu Jan 23 13:55:07 CET 2020	ac/log/woodlathe woodlathe {
  {
 "manual_poweroff": 0,
 "idle_poweroff": 0,
 "errors": 0,
 "ota": true,
 "node": "woodlathe",
 "machine": "woodlathe",
 "maxMqtt": 384,
 "id": "887124a4ae30",
 "ip": "192.168.6.144",
 "net": "UTP",
 "mac": "30:AE:A4:24:71:8B",
 "beat": 1704134479,
 "alive-uptime": 6600,
 "approve": 1,
 "deny": 0,
 "requests": 1,
 "cache_hit": 1,
 "cache_miss": 0,
 "cache_purge": 0,
 "cache_update": 1,
 "mqtt_reconnects": 1,
 "loop_rate": 15.1384325,
 "coreTemp": 53.33333333,
 "heap_free": 168180,
 "rfid_scans": 1,
 "rfid_misses": 103951,
 "rfid": "RFID-MFRC522",
 "state": "Waiting for card, screen dark",
 "seconds_in_state": [
   0,
   3,
   0,
   0,
   0,
   1244,
   0,
   0,
   0,
   5645,
   0,
   2,
   3,
   0
 ],
 "normal_poweroff": 1,
 "fw": "ACNode/examples/WoodLatheNode/WoodLatheNode.ino Jan  1 2024 17:45:18"
  }

History

Latest incarnation installed late 2023.

Old node, no longer in use
Old node, no longer in use