Botje, Interactive Arduino R4 WiFi Companion
by wilsnico in Circuits > Arduino
142 Views, 1 Favorites, 0 Comments
Botje, Interactive Arduino R4 WiFi Companion
Botje, Interactive Arduino R4 WiFi Desktop Companion
Bill Gates way, so all programmers of Flappy, Snake, ... you recognize something from you, I don't deny it and I am grateful for your....
Story
R4 WiFi collection of what I found on the net throwed together with some stuff from me in an interactive companion with the following skills :
Online and offline, blocked all internet applications when no WiFi network connection .
Funny animation & images .
Old scool retro sounds .
Fm Radio + Possibility of saving favorite frequency on Eeprom.
Time bound atmosphere mood 16x16 LED Matrix .
8x16 LED matrix RTC time animation
RTC Manual Time Configuration.
Animated R4 LED Matrix Face .(Sleeps from midnight to 8 am morning.)
Local measurements of temperature, humidity, pressure, air particles, UV index.
Online time/date & weather information .
50 questions Trivia, Snake & Flappy Game .
Online question, answer jokes .
Is in French, but not difficult to convert all French text with translator to ....
Not completely, still small problems such as irritating noise on FM module sound output when other I2C equipment is used when radio is on.
Sweet open source programmers you can be useful here to solve this problem, all help is welcome .
WiFi Connection ;
Change .
char ssid[] = "--------";
char pass[] = "--------";
For correct time, change time zone :
Change .
timeClient.setTimeOffset(7200);
You can also change the NTP server in this line :
NTPClient timeClient(ntpUDP, "be.pool.ntp.org");
Forecast coordinates :
Change latitude, longitude in (First check on open-meteo coordinates .) .
client.println("GET /v1/forecast?latitude=50.6337&longitude=5.5675¤t=temperature_2m,relative_humidity_2m,apparent_temperature,is_day,precipitation,rain,showers,snowfall,weather_code,cloud_cover,pressure_msl,surface_pressure,wind_speed_10m,wind_direction_10m,wind_gusts_10m&timezone=Europe%2FBerlin&forecast_days=1 HTTP/1.1");
Name city of forecast chosen coordinates, (4 times to change) :
Change .
u8g2.print("-Liege-");
English version of jokes :
Change .
clientssl.println("GET /joke/Any?lang=fr&format=xml&type=twopart HTTP/1.1");
To .
clientssl.println("GET /joke/Any?lang=en&format=xml&type=twopart HTTP/1.1");
install libraries :
U8g2lib.h, Wire.h, WiFiS3.h, WiFiSSLClient.h, IPAddress.h, ArduinoJson.h, assert.h,
ArduinoGraphics.h, Arduino_LED_Matrix.h, FastLED.h, NTPClient.h, WiFiUdp.h,
RTC.h, Adafruit_BMP085_U.h, Adafruit_Sensor.h, MQSpaceData.h, DHT.h, TEA5767.h .
TEA5767 libraries :
https://github.com/big12boy/TEA5767/tree/master
All files in one compressed version(zip, 29 items) .
Latest update :
20/09/2024
https://drive.google.com/file/d/1S__Qmd_y47v3lb4cqiBwSW4AUmgg2gyx/view
Last update is again a major update with many changes.
System now runs mainly on RTC clock and when network, sync every 30 minutes the RTC with pool.
Offline, RTC is used and you can change this RTC time manually.
All internet applications: jokes, open-meteo and internet date/time are offline blocked.
Fm Radio Module start arduino setup the frequency that is stored on the Eeprom and puts Fm Radio Module in muted mode .
To get out of this muted mode, you just have to select the FM Radio in button Menu.
All games are now together in a vertical menu that is called up with Joystick Button.
Joystick Button is also used for selection in games menu and games.
Joystick Button is also used to rise flappy in play.
Other buttons (From left to right) :
Button 1: Fm Radio and humidity.
Button 2: UV index and air pressure.
Button 3: Air Quality and Open-Meteo.com .
Button 4: Internet date/time and manual RTC set .
.Selected button is also used in menu to perform menu selection.
MQ sensors menu is vertical, use joystick up/down to choose the right sensor that is plugged in.
Manual RTC setting buttons:
Button 4;Selection hour, minutes, seconds.
Button 1: Change value of hour, minutes or set the seconds to zero.
Button 2: Saving set time on RTC.
Button 3: Leave manual time settings without saving on RTC.
Fm Radio settings buttons :
Button 1: 0.1 Frequency lower.
Button 2: 1.0 frequency lower.
Button 3: 0.1 Frequency higher.
(The Frequincy in settings automatically jump from 88.0 to 108.0 and vice versa.)
Button 4: Put FM Radio Module in muted mode and goes out FM Radio Settings.
Joystick to the left + Joystick button: goes out FM Radio Settings and writes chosen Frequency on the Eeprom.
Joystick to the right + Joystick button: goes out FM Radio Settings.
All videos may have different images or animation than the latest updated version of Project !!!!!!!
Video of Botje in Operation:
https://drive.google.com/file/d/1vl_shGyRmG-MU7OvcF3XYa6gA5LfyKxH/view
Video of FM Radio Module:
https://drive.google.com/file/d/1ATDQI8lEtzixks2tQREsxTE__SQdG3JZ/view
Video face R4 LED matrix :
https://drive.google.com/file/d/1yig8mSmTFw5lun-mWuM3_O87Oeiy0pP0/view
Video humidity and temperature :
https://drive.google.com/file/d/1aBAI_t65RNd9fRXFwBRJPth4M25G156c/view
Video UV index and pressure :
https://drive.google.com/file/d/1LpiWilkduq1KFA-Lj1tmkBKxas_EQVvB/view
Video MQ Sensors ( MQ Sensors are plug &;Play method. Do not forget necessary warming up time for MQ) and Open-Meteo.com :
https://drive.google.com/file/d/1h5M30COtwtHP1VNPKTO3ywfonnDyZlR2/view
Video Date - Time and Ttrivia Game :
https://drive.google.com/file/d/1Y4cCrgWzf2OU70jLsUPV0PXotMEPscGK/view
Video Snake and Flappy Game :
https://drive.google.com/file/d/1PLZREkEb9nalueP9ZfUnfH3-CecwNFvN/view
video matrix animation RTC-time= >12h<14h :
https://drive.google.com/file/d/1mEuzJQIFTs2Ansyr7R7T62vk_mo6Ip8x/view
video matrix animation RTC-time= >8h<12h & >14h<19h :
https://drive.google.com/file/d/1iJbZ4yMAHCe_uXH_kTfQ2giFJB446xlO/view
video matrix animation RTC-time= >19h<24h :
https://drive.google.com/file/d/1sjIwmtOUvf0dWBG2_UMgHp9MnlAZQeio/view
video matrix animation RTC-time= >24h<8h :
https://drive.google.com/file/d/1gqXVF857WY0UBUrHS5Wt1dgUXXaX3QZN/view
video matrix2 time (Less LED brightness between 7 pm and midnight, no time display between midnight and 8 am) :
https://drive.google.com/file/d/1IaMvuwuGBaxWwustG0aPGT0Op17hN8vE/view
---Final OLED image an animation videos (Update 27/08/2004)--
Online question, answer joke loop from v2.jokeeapi.dev on OLED (No joke 24pm/8am):
https://drive.google.com/file/d/12YEfJtUsX01AequNvzqSQ_ctmvFmd4Wf/view
Change and save time on RTC:
https://drive.google.com/file/d/15FNibRRzXYLu06zjr6aQZjPuPT-d0ZV6/view
Botje OLED Start Animation :
https://drive.google.com/file/d/1XCMvBs51Z8Zah7KnP9hYtEd8Kjl3-h75/view
Open-meteo animation and data :
https://drive.google.com/file/d/1MGj0vCfuj1C9yu4BGN_FDkc1XocyG4JV/view
Month calendar :
https://drive.google.com/file/d/1OpRrmqjVF3L5-lPZKZ5LFg-hPOmJUdI0/view
Trivia Coornrect Answered Animation :
https://drive.google.com/file/d/1S-H6jGUSuoCg1ZW_8W-NODkONzi5qmAh/view
Trivia Wrong answer image :
https://drive.google.com/file/d/1Rw-LrRvravq3aGwfc3EUOTz7s1jUKJ_n/view
Flappy game title and game over images :
https://drive.google.com/file/d/17JNX7AwiCFslq2LL4Fl_3MqLBRgx9J6a/view
Snake game title and game over images :
https://drive.google.com/file/d/1B48QOGezjHesQIc8wZLghP3DnTz1CdIK/view
Supplies
Hardware components
Wood
Semi transparent screen for 16x16 matrix
Arduino UNO R4 WiFi × 1
GUVA-S12SD × 1
MQ-8 × 1
MQ-7 × 1
MQ-6 × 1
MQ-5 × 1
MQ-4 × 1
MQ-3 × 1
MQ-2 × 1
MQ-135 × 1
Joystick module × 1
KY-004 × 4
128X128 oled × 1
RGB LED matrix 16X16 WS2812B × 1
Loudspeaker, 2W × 1
relay module × 1
DHT22 Temperature Sensor × 1
traffic light LED × 1
BMP180 × 1
Male/Female Jumper Wires × 1
Male/Male Jumper Wires × 1
Toy car flashing light × 1
5v mini cooling fan × 1
Breadboard (generic) Big × 1
Solderless Breadboard Half Size × 1
OPEN-SMART I2C LED MATRIX 16x8 × 1
Battery Holder, 2xAAA x 1
At24c256 eeprom x 1
Tea5767 Fm Stereo Module x 1
Install libraries :
U8g2lib.h, Wire.h, WiFiS3.h, WiFiSSLClient.h, IPAddress.h, ArduinoJson.h, assert.h,
ArduinoGraphics.h, Arduino_LED_Matrix.h, FastLED.h, NTPClient.h, WiFiUdp.h,
RTC.h, Adafruit_BMP085_U.h, Adafruit_Sensor.h, MQSpaceData.h, DHT.h, TEA5767.h .
All files in one compressed version(zip, 29 items) .
Latest update :
20/09/2024
https://drive.google.com/file/d/1S__Qmd_y47v3lb4cqiBwSW4AUmgg2gyx/view