Node ByeBye: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Wiring)
(Wiring)
Regel 11: Regel 11:
  
 
== Wiring ==
 
== 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);
  
  const uint8_t I2C_SDA_PIN = 13; //SDA;  // i2c SDA Pin, ext 2, pin 10
+
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]].
  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;  // Ext1, pin 10
 
  const uint8_t mfrc522_rfid_i2c_reset = 5; // Ext1, pin 9
 
 
 
  const uint8_t aart_led  15 // Ext 2, pin 8
 
  const uint8_t pusbutton  0 // Ext 1, pin 6
 

Versie van 10 mrt 2019 om 19:09

[Olimex ESP-32 PoE] based.


i2c rfid reader

MFRC522, 3v3

i2c OLED screen

SD 1306, 128x64, blue, 3v3

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].