Node ByeBye: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Nieuwe pagina aangemaakt met ' const uint8_t I2C_SDA_PIN = 13; //SDA; // i2c SDA Pin const uint8_t I2C_SCL_PIN = 16; //SCL; // i2c SCL Pin const uint8_t oled_sd1306_i2c_addr = 0x3C; c...')
 
 
(32 tussenliggende versies door 5 gebruikers niet weergegeven)
Regel 1: Regel 1:
 +
[[Category:Nodes & network devices]]
 +
Note mounted on the door to let people 'check out'.
  
  const uint8_t I2C_SDA_PIN = 13; //SDA;  // i2c SDA Pin
+
[[Bestand:Byebey.jpg|miniatuur|Prototype Node Bye Bye]]
  const uint8_t I2C_SCL_PIN = 16; //SCL;  // i2c SCL Pin
 
  
  const uint8_t oled_sd1306_i2c_addr = 0x3C;
+
== State ==
  const uint8_t mfrc522_rfid_i2c_addr = 0x28;
 
  
   const uint8_t aart_led  (EXT2 onderaan)
+
Pretty much operational. Not yet showing things like lights left on.
  const uint8_t pusbutton
+
 
 +
Bevat [[https://github.com/MakerSpaceLeiden/AccesSystem/tree/master/lib-arduino/ACNode/examples/ByeByeNode test versie van de software]].
 +
 
 +
= Hardware =
 +
 
 +
This is a PoE wired node; to patch port B3 -- see [[Network setup overview#Patch_panels]] port 22. The board is [[https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware Olimex ESP-32 PoE]] based.
 +
 
 +
== i2c rfid reader ==
 +
 
 +
MFRC522, 3v3
 +
 
 +
Enclosure on [[https://www.thingiverse.com/thing:3482852 thinkiverse]]. The extra slice is a drilling template.
 +
 
 +
== i2c OLED screen ==
 +
 
 +
SD 1306, 128x64, blue, 3v3
 +
 
 +
Enclosure on [[https://www.thingiverse.com/thing:3482845 thinkiverse]].
 +
 
 +
== Wiring ==
 +
   
 +
    const uint8_t I2C_SDA_PIN = 13; //SDA;  // i2c SDA Pin, ext 2, pin 10
 +
    const uint8_t I2C_SCL_PIN = 16; //SCL;  // i2c SCL Pin, ext 2, pin 7
 +
   
 +
    const uint8_t oled_sd1306_i2c_addr =  0x3C;
 +
   
 +
    const uint8_t mfrc522_rfid_i2c_addr = 0x28;
 +
    const uint8_t mfrc522_rfid_i2c_irq = 4;   // Ext 1, pin 10
 +
    const uint8_t mfrc522_rfid_i2c_reset = 5; // Ext 1, pin  9
 +
   
 +
    const uint8_t aart_led  = 15; // Ext 2, pin 8
 +
    const uint8_t pusbutton =  1; // Ext 1, pin 6
 +
   
 +
    #define SCREEN_WIDTH 128 // OLED display width, in pixels
 +
    #define SCREEN_HEIGHT 64 // OLED display height, in pixels
 +
   
 +
    Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1 /* no reset */);
 +
   
 +
    TwoWire i2cBus = TwoWire(0);
 +
    MFRC522_I2C * dev = new MFRC522_I2C(mfrc522_rfid_i2c_reset, mfrc522_rfid_i2c_addr, i2cBus);
 +
    MFRC522 mfrc522  = MFRC522(dev);
 +
 
 +
Test HW app in [[https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/test/PoE-test/byebye-electroncis-test/test-poe-byebye/test-poe-byebye.ino github]]. Deze test alle hardware functies.
 +
 
 +
== Troubleshooting ==
 +
If node is unhappy, try looking at MQTT output of nodebyebye. It should give it's IP address among other usefull information. grep for '{' to get reports from nodes withouth much other clutter.
 +
 
 +
If there is no MQTT output and you don't know it's IP adress, connect to USB. On serial it will output usefull information like whether or not it has a network connection etc. And it's IP address.
 +
 
 +
If you already know it' s IP address, there is no need to connect over USB: the same information can be gotten by telnetting to this IP.
 +
 
 +
'''BELANGRIJK'''
 +
 
 +
Als je de USB aansluit - doe dat dan 1) of van een ongeaarde laptop (veel laptops hebben een simpele 2 polige platte steker zonder aarde, or can be run from battery); of 2) zorg dat de ethernet stekker er niet in zit. Of 3) gebruik een galvanisch scheidende USB kabel.
 +
 
 +
Dit alles om een lus via de aarde te voorkomen. Daar kan de POE niet tegen.
 +
 
 +
''' IMPORTANT '''
 +
 
 +
If you connect over USB - to prevent ground loops (POE can't handle them): 1) use a non-grounded laptop (most have a simple 2 prong plug, of kunnen vanaf hun batterij draaien); or 2) make sure the ethernet isn' t plugged in. Or 3) use a galvanic isolating USB cable.
 +
 
 +
== History ==
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Datum !! Beschrijving
 +
|-
 +
| Q2 2019 || In gebruikname
 +
|-
 +
| 2019-09-18 || Outage - ethernet stekker onhappy na nieuwe aansluiting 5v voor [[Mains sensor|display apparaten]]; opgelost door opnieuw aankrimpen stekertje aan kant node door Lucas.
 +
|-
 +
| Voorbeeld || Voorbeeld
 +
|}

Huidige versie van 16 nov 2024 om 23:17

Note mounted on the door to let people 'check out'.

Prototype Node Bye Bye

State

Pretty much operational. Not yet showing things like lights left on.

Bevat [test versie van de software].

Hardware

This is a PoE wired node; to patch port B3 -- see Network setup overview#Patch_panels port 22. The board is [Olimex ESP-32 PoE] based.

i2c rfid reader

MFRC522, 3v3

Enclosure on [thinkiverse]. The extra slice is a drilling template.

i2c OLED screen

SD 1306, 128x64, blue, 3v3

Enclosure on [thinkiverse].

Wiring

   const uint8_t I2C_SDA_PIN = 13; //SDA;  // i2c SDA Pin, ext 2, pin 10
   const uint8_t I2C_SCL_PIN = 16; //SCL;  // i2c SCL Pin, ext 2, pin 7
   
   const uint8_t oled_sd1306_i2c_addr =  0x3C;
   
   const uint8_t mfrc522_rfid_i2c_addr = 0x28;
   const uint8_t mfrc522_rfid_i2c_irq = 4;   // Ext 1, pin 10
   const uint8_t mfrc522_rfid_i2c_reset = 5; // Ext 1, pin  9
   
   const uint8_t aart_led  = 15; // Ext 2, pin 8
   const uint8_t pusbutton =  1; // Ext 1, pin 6
   
   #define SCREEN_WIDTH 128 // OLED display width, in pixels
   #define SCREEN_HEIGHT 64 // OLED display height, in pixels
   
   Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1 /* no reset */);
   
   TwoWire i2cBus = TwoWire(0);
   MFRC522_I2C * dev = new MFRC522_I2C(mfrc522_rfid_i2c_reset, mfrc522_rfid_i2c_addr, i2cBus);
   MFRC522 mfrc522  = MFRC522(dev);

Test HW app in [github]. Deze test alle hardware functies.

Troubleshooting

If node is unhappy, try looking at MQTT output of nodebyebye. It should give it's IP address among other usefull information. grep for '{' to get reports from nodes withouth much other clutter.

If there is no MQTT output and you don't know it's IP adress, connect to USB. On serial it will output usefull information like whether or not it has a network connection etc. And it's IP address.

If you already know it' s IP address, there is no need to connect over USB: the same information can be gotten by telnetting to this IP.

BELANGRIJK

Als je de USB aansluit - doe dat dan 1) of van een ongeaarde laptop (veel laptops hebben een simpele 2 polige platte steker zonder aarde, or can be run from battery); of 2) zorg dat de ethernet stekker er niet in zit. Of 3) gebruik een galvanisch scheidende USB kabel.

Dit alles om een lus via de aarde te voorkomen. Daar kan de POE niet tegen.

IMPORTANT

If you connect over USB - to prevent ground loops (POE can't handle them): 1) use a non-grounded laptop (most have a simple 2 prong plug, of kunnen vanaf hun batterij draaien); or 2) make sure the ethernet isn' t plugged in. Or 3) use a galvanic isolating USB cable.

History

Datum Beschrijving
Q2 2019 In gebruikname
2019-09-18 Outage - ethernet stekker onhappy na nieuwe aansluiting 5v voor display apparaten; opgelost door opnieuw aankrimpen stekertje aan kant node door Lucas.
Voorbeeld Voorbeeld