Skip to content

Latest commit

 

History

History

arduino

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

English | Español

PaseTec – Arduino

Arduino Boxes.

Setup

You'll need the Arduino IDE installed.

ESP8266 Boards

  • Start the Arduino IDE and open Preferences.
  • Enter https://arduino.esp8266.com/stable/package_esp8266com_index.json in Additional Board Manager URLs. (You can put multiple URLs separated by commas).
  • Open Boards Manager from Tools > Board menu and install esp8266 platform.
  • Now you are able to select it when uploading to the WeMos D1 mini.

MFRC522 Library

  • Start the Arduino IDE and go to Sketch > Include Library > Manage Libraries....
  • Search MFRC522 and install it.
  • Now you are able to use it.

conf.h

In arduino/*/wemos/, you'll need to create a conf.h file. Is like a dotenv for Arduino, and should look like this:

#define NETWORK_SSID      "MyWiFiNetwork"
#define NETWORK_PASSWORD  "coolP44SW00RD"
#define HOST              "example.com"
#define SECRET            "api-secret"

CACert.ino

In arduino/*/wemos/, you'll need a CACert.ino. There goes the root SSL certificate of your host. Here is a guide to get it.

File Structure

arduino/
|-- bus/
|-- checker
|-- control-center/

Boards and Wires

Bus and Checker

Arduino Uno, WeMoS D1 mini, RFID-RC522, LCD 16x4 & Buzzer. The Checker is like the Bus without the buzzer.

Bus

Control Center

Arduino Uno & RFID-RC522.

Control Center

Notes

I don't know why, but when you turn on both an Uno and a WeMoS that are connected, the WeMoS must be on before or at the same time as the Uno.