laboite is a connected clock that displays a lot of information from the Internetz.
- Redgick_GFX, the core graphics library;
- WiFiManager;
- ESP8266HTTPClient by Markus Sattler
- ArduinoJson by Benoit Blanchon
Download this repository and unzip it into the Arduino libraries folder on your computer. You should rename the folder Redgick_Laboite-master
in Redgick_Laboite
.
In the Arduino IDE, look at File/Examples/Redgick_Laboite
folder to load an example sketch.
- 1 x NodeMcu V2 or V3;
- 2 x MAX7219 Dot Matrix Modules;
- 1 x frame 3D printed (download 3D model);
- 1 x PMMA screen laser cutted (download 2D model);
- 1 x colson collar.
The CAD models of the frame and the screen can be edited on Tinkercad
laboîte maker as been tested with two types of NodeMCU : V2 and V3. Both come with the chip ESP-12E. If you compare the pin layout of the V3, there’s only a tiny difference to the V2 layout. V3 use one of the two reserve pins for USB power out and the other for an additional GND.
NodeMCU V2 | NodeMCU V3 | LED Matrix | ||
---|---|---|---|---|
Pin | GPIO | Pin | GPIO | Pin |
Vin (+5V) | - | VV (+5V) | - | +12V |
GND | - | GND | - | GND |
D7 | GPIO13 | D7 | GPIO13 | DIN |
D8 | GPIO15 | D8 | GPIO15 | CS |
D5 | GPIO14 | D5 | GPIO14 | CLK |
- MAX7219 Dot Matrix Modules should be connected together in serial. Only input pins are welded on the modules, so start by welding output pins on the upper MAX7219 Dot Matrix Module.
- Then insert the Colson collar in the frame to fasten the NodeMCU on the rear side of the frame.
- Insert MAX7219 Dot Matrix Modules in the frame and plug the PMMA screen on it.
- Connect the MAX7219 Dot Matrix Modules and the NodeMCU following the schematic bellow :
- Create an account in lenuage.io and add a new boîte. An API Key is automatically generated.
- Start Arduino IDE and open
File > Preferences
window. - Enter
http://arduino.esp8266.com/stable/package_esp8266com_index.json
intoAdditional Board Manager URLs
field. - Open
Tools > Board: > Boards Manager...
menu and find ESP8266 by ESP8266 Community and install it. - Select
Tools > Board > NodeMCU 1.0 (ESP-12E Module)
. - Open library manager from
Sketch > Include library > Manage Libraries...
and find ArduinoJson by Benoit Blanchon and install the latest version 5 (do not install a beta version 6). - Then find WifiManager by tzapu and install the stable version v0.12.0.
- Download Redgick_GFX libraries, copy and past Redgick-GFX and Redgick_MatrixMax72XX into your Arduino library folder.
- Download Redgick-Laboite into your Arduino lbrary folder. Remove the trailling extension (-master) of the library folder name.
- Open
File > Exemples > Redgick_laboite > laboite_maker_edition
- First click on
Verify/Compile
, if an error message appears, get sure that you have correctly placed the files with the right name. - Replace
00000000-0000-0000-0000-000000000000
with your API key - Connect the NodeMCU, upload and enjoy !
- At the first boot, laboîte create an WiFi access point named "laboite". Connect to it with your smartphone, open a navigator à http://192.168.4.1 and set the SSID and Password of you WiFi network.
- laboîte will reboot and automatically connect to the given WiFi network. That's it !
Explore lenuage.io interface to configure apps and have fun !