I did a driver for ST7735 LCD and for demo I've ported Adafruit Uncanny Eyes code to the HARDWARIO IoT KitCore Module. The code controls eyes by accelerometer but it can be easily controlled with MQTT over 868 MHz HARDWARIO IoT Kit radio.
Eyes also close its iris based on light intensity on the Luxmeter Tag.
LCD display is connected over SPI. Connect the:
- MOSI LCD to P13 Core Module pin
- SCLKP14
- CSP15
- RESET P16
- DC P17
- 3.3V to VCC
- GND to GND
Both LCDs are connected in paralel and use the same RESET, CS and DC signal.
Optionally you can connect Luxmeter Tag or Climate Module and use the Luxmeter to close the iris if you shine a light to it.
Download HARDWARIO Playground multiplatform GUI tool. This tool can flash firmware. It also contains gateway for Radio Dongle and Node-RED but we will not use them because our device talks directly to LoRa gateways.
- Connect Core Module over USB to your PC and wait until the FTDI driver is installed
- Run the HARDWARIOPlayground
- Download and flash the latest firmware in the Firmware tab
- Choose the correct serial COM port and press "FLASH FIRMWARE" button
- After flashing, the Core Module will turn on red LED
See troubleshooting section orvisit HARDWARIO forum If something goes wrong
Now you should see the eyes on the screen. Rotate the Core Module so the eyes will move. You can also shine to the Luxmeter Tag and the iris will close.
Final ThoughtsUsing Radio Dongle you can change the code and control the yes wirelessly. Thanks to 868 MHz link you can control Uncanny Eyes from the very far.
- Check out other HARDWARIO IoT Kit projects.
- Take a look at the Module Overview.
- Learn about MQTT and HARDWARIO IoT Kit MQTT topics to control LEDs and relays.
- Try other integrationswith Grafana, Blynk, IFTTT, Ubidots and others.
- Use your Raspberry PIor other single board computer (SBC) as a server.
- Flash other firmware orwrite your own firmwarefor the Core Module.
- Check the Core Module pinoutsand add your own buttons, relays and sensors.
Comments