Posts

Showing posts with the label Nologo UNO R4 WiFi

Flashing Heart on Uno R4 WiFi

Image
Flashing Heart on Nologo Uno R4 WiFi : UnoR4_Heart.ino /* Display Heart on Uno R4 using Matrix Frame Buffer */ // Include the LED_Matrix library #include "Arduino_LED_Matrix.h" // Create an instance of the ArduinoLEDMatrix class ArduinoLEDMatrix matrix; const int num_of_row = 8; const int num_of_col = 12; const int max_random = 1000; // Define the frame array for the LED matrix with pixel values uint8_t mask_matrix[8][12]; uint8_t heart[8][12] = { { 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0 }, { 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0 }, { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, { 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }, { 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, { 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } }; uint8_t result_matrix[8][12]; #define ROWS 8 #define COLUMNS 12 void reRandomMask(int margin){ for (int r=0; r<num_of_row; r++){ for (int c=0; c<num_o...

BLE communication between MicroPython aioble and ArduinoBLE

Image
Previous posts introduced " MicroPython bluetooth remote control LED between Raspberry Pi Pico W and ESP32-C3, using aioble library " and " BLE examples run on Nano 33 BLE (as Peripheral) and Uno R4 WiFi (as Central) using ArduinoBLE in Arduino Framework ". This video further test how BLE communication between that two approach.

Display on SSD1306/SSD1315 OLED with Uno R4 WiFi & Nano 33 BLE using Adafruit SSD1306 library

Image
Last post show how to display on SSD1306/SSD1315 OLED with Uno R4 WiFi & Nano 33 BLE using U8g2 library , this post show how to using Adafruit SSD1306 library. Install Adafruit SSD1306 library and dependencies, Adafruit BusIO and Adafruit GFX Library. Connnection, refer to last post . In last post, it's found that the I2C Address of SSD1306/SSD1315 OLED is 0x3C. Open File > Examples > Adafruit SSD1306 > ssd1306_128x64_i2c Change SCREEN_ADDRESS to 0x3C. #define SCREEN_ADDRESS 0x3C //0x3D Then it can run on Uno R4 WiFi & Nano 33 BLE to display on SSD1306/SSD1315 OLED.

Display on SSD1306/SSD1315 OLED with Uno R4 WiFi & Nano 33 BLE using U8g2 library

Image
This video show displaying on 0.96 inch 128x64 SSD1306/SSD1315 OLED with NoLogo Uno R4 WiFi & Nologo Nano 33 BLE nRF52840 using U8g2 library . Library: Install U8g2 Library in Arduino IDE's Library Manager. Connection: Connection between SSD1306/SSD1315 OLED and Uno R4 WiFi/Nano 33 BLE notice: Uno R4 WiFi operate on 5V Nano 33 BLE operate on 3.3V The operating voltage of my OLED board is 3.3~5V * Check operating voltage of your own OLED board! OLED Uno R4 WiFi Nano 33 BL ------------------------------ GND GND GND VCC +5V +3V3 SCL D19/SCL A5/P0.02 SDA D18/SDA A4/P0.31 Arduino Code: i2c_scanner.ino , scan connected I2C devices and print its I2C address. #include <Wire.h> void setup() { Wire.begin(); delay(1000); Serial.begin(115200); while (!Serial); delay(1000); Serial.println("\nI2C Scanner"); delay(2000); } void loop() { byte error, address; int nDevices; Serial.println(...

List pins of Nologo UNO R4 WiFi

Image
UnoR4WiFi_info.ino , list pre-defined pins of Uno R4 WiFi . /* Exercise run on Uno R4 WiFi to get pins info. */ void setup() { // set LED pin to output mode pinMode(LED_BUILTIN, OUTPUT); blinkLED(); blinkLED(); blinkLED(); Serial.begin(9600); delay(500); Serial.println(); Serial.println("-----------------------------"); Serial.println("\n- Uno R4 WiFi pins info -"); Serial.println("-----------------------------"); Serial.println("USB_NAME:\t" + String(USB_NAME)); Serial.println("USB_VID:\t" + String(USB_VID, HEX)); Serial.println("USB_PID:\t" + String(USB_PID, HEX)); Serial.println(); Serial.println("LED_BUILTIN:\t" + String(LED_BUILTIN)); Serial.println(); Serial.println("MOSI:\t" + String(MOSI)); Serial.println("MISO:\t" + String(MISO)); Serial.println("SCK:\t" + String(SCK)); Serial.println("SS:\t" + String(SS)); Seri...

Check and update UNO R4 WiFi firmware

Image
unoR4WiFi_CheckWiFiFirmware.ino run on my dev.board - Nologo UNO R4 WiFi , to check the on board WiFi Firmware version. /* Simple code to check WiFi Firmware on Arduino Uno R4 WiFi Wi-Fi support is enabled via the built-in WiFiS3 library that is shipped with the Arduino UNO R4 Core. Installing the core automatically installs the WiFiS3 library. ref: UNO R4 WiFi Network Examples https://docs.arduino.cc/tutorials/uno-r4-wifi/wifi-examples */ #include <WiFiS3.h> void setup() { delay(500); //Initialize serial and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } delay(500); Serial.println("- Check Arduino Uno R4 WiFi firmware version -"); // check for the WiFi module: if (WiFi.status() == WL_NO_MODULE) { Serial.println("Communication with WiFi module failed!"); // don't continue while (true); } String fv = WiFi.fir...

my dev.board - Nologo UNO R4 WiFi

Image
my dev.board - Nologo UNO R4 WiFi Follow the  UNO R4 WiFi Getting Starte guide to install Board Package in Arduino IDE . First try Nologo UNO R4 WiFi and LED Matrix examples more: ~  Check and update UNO R4 WiFi firmware ~  List pins of Nologo UNO R4 WiFi ~  BLE examples run on Nano 33 BLE (as Peripheral) and Uno R4 WiFi (as Central) in Arduino framework using ArduinoBLE library ~  BLE communication between MicroPython aioble and ArduinoBLE ~  Display on SSD1306/SSD1315 OLED with Uno R4 WiFi & Nano 33 BLE using U8g2 library ~  Display on SSD1306/SSD1315 OLED with Uno R4 WiFi & Nano 33 BLE using Adafruit SSD1306 library ~  Flashing Heart on Uno R4 WiFi