NodeWoodlathe: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
 
(22 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]]
+
== 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 de orange knop 10-15 seconden ingedrukt gehouden direct '''''[[na]]''''' de powerup (dit staat dus fout op het label!) - en tijdens het opstarten gaat de Node in 'config' mode. De orange 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'
 
# topix prefix - 'test' voor tests, makerspace/ac voor productie.
 
# node name - de naam van de node (exhaustnode)
 
# machine - de naan van het device wat bedient wordt (fan).
 
# 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"
 +
  }
  
== Code, Schema en Werking ==
+
== History ==
  
De node bevat een NodeMCU, een Relay en een simpele voeding.  
+
Latest incarnation installed late 2023.
  
De code staat in git: https://github.com/MakerSpaceLeiden/AccesSystem/tree/master/ExhaustNode. Nodig zijn een Arduino 1.5 IDE of nieuwer; met de MQTT, EPS826 en WifiManager/OTA libraries. De (huidige) versie ondersteunt OTA.
+
[[Bestand:Woodnode.jpg|miniatuur| Old node, no longer in use]]
 
+
[[Bestand:WoodnodeInside.jpg|miniatuur|Old node, no longer in use]]
[[Bestand:Exhaust-Schema.png]]
 
 
 
Dit schema is ook on-line beschikbaar/editbaar: https://easyeda.com/dirkx/ExhaustFan-ROI0iAuM4
 
 
 
Onderkant print (de gebruikte printpraat is van dramatisch slechte kwaliteit - bij hersolderen rekening houden met losse voetjes en mechanische breuk).
 
 
 
[[Bestand:Exhaust-Onder.jpg|420px]]
 
 
 
Bovenkant print (het 3 pins stekertje zit express dicht bij de PSU - zodat de assymetrische steker er  eigenlijk maar op één manier in past.
 
 
 
[[Bestand:Exhaust-Boven.jpg|420px]]
 
 
 
Voorkant MCU print - connect een microUSB om direct te her-programmeren; houd de PGM knop 1-2 seconden ingedrukt na de reset knop indien de unit 'gewedged' is -- het flash hetschrijven is niet geheel betrouwbaar.
 
 
 
[[Bestand:Exhaust-Voor.jpg|420px]]
 
 
 
De knoppen zijn via stekertjes verbonden met de print. Deze kunnen in principe maar op een manier vast; de 4 polige op de  polige header; 3 polige op de drie polige header. Bij twijfel - de bruine draaden zitten altijd het meest aan de 'Relay' kant van de print (op onderstaande foto, rechts).
 
 
 
[[Bestand:Exhaust-Wiring.jpg|420px]]
 
 
 
== BUGS en Verbeteringen ==
 
 
 
De pull-up voor de drukknop moet aan de 3v3.
 
 
 
De NodeMCU is relatief duur en fancy; en neemt veel ruimte in - en zou vervangen kunnen worden door een EPS8266 12E (of nieuwer) met wat extra weerstanden, 3 of 4 pinnen voor een 3v3 Serial TTL (voor het programmeren) - en afhankelijk van de pushbutton wiring een extra 'Program' push button of jumper.
 
 
 
Het relay is nu een DPDT van 2x5A. Dat kan beter/fors-goedkoper met een STSP van 10A of meer.
 
 
 
Er is geen duidelijke '3 weg' optie -- automatisch, uit, manual in zowel UI als electronica.
 
 
 
De pushbutton zit aan GPIO 0 - dus indrukken tijdens powerup brengt de NodeMCU in program stand. Dat is soms handing - omdat de button op het boardje fragiel is; maar ook verwarrend als je de unit in config-mode probeert te krijgen en te vroeg op de knop drukt (staat fout op het label).
 
 
 
De groene LED deelt haar pin met een of ander rood ledje op de print; dat aan de VCC hangt.
 
 
 
kruipweg net/laagspanning tussen Pin 2 en 3 van P4. (En de short tussen 1 en 2 in het schema
 
 
 
kruipweg fase/nul tussen pinnen van ST (Eilandjes)
 
 
 
== BOM ==
 
 
 
Huidige bom - rond de 15 dollar. Met 'te' duur relais en NodeMCU.
 
 
 
#. 3 Module breed DIN rail doosje ;  https://www.okwenclosures.com/en/Plastic-enclosures/Railtec-B.htm - tussen de $4.50 en $7,50 AliExpress of Farnell.
 
# NodeMCU; http://nodemcu.com/ -- Rond de 5$ op AliExpress
 
# 3Watt, 5Volt PSU; http://www.vigortronix.com/ACDCPCBPowerModule.aspx - rond de 5-10$ bij farnell potted; rond de 2-3$ bij AlieExpress 'bloot'.
 
# Relais, 5 tot 10A, 5-6Volt coil -- E.g  TE CONNECTIVITY / OEG /OJE-SH-105HM,000 (Farnell  Ordercode: 1891646 - rond de 1$). Huidig relais is een 2x5A DPDT met 6V coil (rond de 5-7$).
 
# Pushbutton met orange LED; 14-16mm - rond de $1.50
 
# Togglebutton met groende LED 14-16mm - rond de $0.75
 
# 3 pin schroef terminal voor PCB (http://nl.aliexpress.com/item/50pcs-3-Pin-Plug-in-Terminal-Block-Connector-PCB-5-08mm-Screw-Terminals-300V-16A/32434845061.html?spm=2114.48010208.4.96.bYnTGi)
 
# 3pin idc en wire assembly  - rond de 0.55$ op AliExpress
 
# 4pin idc en wire assembly - rond de 0.75$ op AliExpress
 
# 2N222 transistor, 2x 60 Ohm weerstand, 2x 10k Weerstand, 2k2 weerstand, diode.
 
# Stukje gaatjesboard.
 
# Stukje karton met [https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/ExhaustNode/images/panel-print.png printout].
 
# 4x zelftappend schroefje voor plastic; M2.5
 
 
 
== Gereedschappen ==
 
 
 
Geen speciaal gereedschap nodig.
 
 
 
# Soldeer apparaat, tangetjes, schroevendraaiers tbv terminal en 4x print schroefjes. striptang.
 
# mesje en printer voor label.
 
# stappenboor handig bij het maken van de gaten voor de buttons.
 
# 3mm boor voor gaatjes print.
 
# USB naar micro-USB kabel voor eerste firmware programmering (daarna kan het via OTA).
 

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