Posts

notes on using Dabble's LED Brightness Control example with Arduino Uno and HC-05 module

Image
In our continuous exploration of integrating mobile applications with microcontroller platforms, we delve into the practical application of Dabble's LED Brightness Control module. This post provides a very sparse collection of notes on interfacing the Arduino Uno with the HC-05 Bluetooth module, enabling control of LED brightness via a smartphone. By following this tutorial, you'll enhance your project's interactivity, bridging the gap between mobile technology and embedded systems. Example Sketch /* Led Brightness Control Module allows user to control any digital pin on their board. They can turn pin ON or OFF, can also vary its PWM if that functionality is supported on that pin. NOTE: 1)For Arduino Mega Connect Bluetooth on Serial3 pins. 2)For Arduino Uno/Nano library uses SoftwareSerial,hence pin 2 and pin 3 are used as RX and TX pins respectively on SoftwareSerial.Hence with arduino Uno follow below connections for bluetooth. UNO - BLUETOOTH ...

notes on using multiple HCSR04 ultrasonic sensors with Arduino Uno

Image
Integrating multiple HC-SR04 ultrasonic sensors with an Arduino Uno can significantly enhance your project's spatial awareness capabilities. In this guide, we'll walk you through the process of connecting several HC-SR04 sensors to an Arduino Uno, providing detailed wiring instructions and a sample sketch to help you get started. By following these steps, you'll be able to accurately measure distances from multiple points, enabling more complex and responsive designs. Example Materials - Arduino UNO -  HCSR04's - USB cable - breadboard - wires Setup Sketch [using  HCSR04 ultrasonic sensor library from [1] ] #include <HCSR04.h> HCSR04 hc ( 7 , new int [ 4 ]{ 8 , 9 , 10 , 11 }, 4 ); //class HCSR04 (trig pin , echo pin, number of sensors) void setup () { Serial . begin ( 9600 ); } void loop () { Serial . println ( "-" ); for ( int i = 0 ; i < 4 ; i ++ ) { Serial . println ( hc . dist (i)); //return curent distance in serial...

notes on how to burn the bootloader in Arduino IDE using an UNO to program a Nano (digital and power pins)

Image
Burning a bootloader onto an Arduino Nano using an Arduino UNO as the programmer is a fundamental skill for electronics enthusiasts and professionals alike. This process revitalizes a Nano with bootloader issues, ensuring seamless uploading of sketches and optimal performance. In this guide, we'll walk you through the necessary materials, setup configurations, and step-by-step instructions to successfully burn the bootloader using the Arduino IDE. Example Materials - Arduino UNO - Arduino NANO - USB cables - breadboard - wires Setup Additional  illustrative examples File>Examples>ArduinoISP>ArduinoISP Tools>Board>Arduino AVR Boards>Arduino UNO Upload Tools>Board>Arduino AVR Boards>Arduino Nano Tools>Processor>ATmega328P (Old Bootloader) Tools>Programmer>Arduino as ISP Tools>Burn Bootloader References [1]  https://support.arduino.cc/hc/en-us/articles/4841602539164-Burn-the-bootloader-on-UNO-Mega-and-classic-Nano-using-another-Arduino

notes on a way to check if an HC-05 is working properly (and also resetting it to factory default)

Image
Restoring the HC-05 Bluetooth module to its default settings is essential for ensuring optimal performance and resolving configuration issues. This post provides a concise guide on resetting the HC-05 module using an Arduino UNO, detailing the necessary materials, setup, and a sample Arduino sketch to facilitate the process. By following these instructions, users can effectively reset their HC-05 modules, ensuring reliable Bluetooth communication in their projects. ( It may not generalize to the entire HC-05 heterogeneity. ) Example Materials - Arduino UNO - USB cable - HC-05 - breadboard - wires Setup Sketch #include <SoftwareSerial.h> SoftwareSerial btSerial ( 4 , 7 ); //hc-05 RX, TX pins int hcENpin = 8 ; int hcPOWERpin = 12 ; char c; void setup () { Serial . begin ( 115200 ); Serial . println ( "setup hc-05 has started" ); Serial . println ( "-----------------------" ); hcfiverestore (); Serial . println ( "-----------------------...

notes on a very brief Arduino UNO check up

Image
This post provides a concise guide for evaluating the functionality of an Arduino UNO board. It outlines two primary procedures. On the one hand  explores the onboard voltage regulator's performance and on the other hand  presents a simple Arduino sketch designed to blink the onboard LED, serving as a basic test to confirm the board's operational status.  The post also includes references for further reading, such as the Arduino documentation on power pins.  This resource is particularly useful for individuals seeking a quick assessment of their Arduino UNO's health, ensuring that both the hardware and software components are functioning correctly. Part I (checking  onboard voltage regulator ) Materials Example Additional  illustrative examples Part II (u ploading a sketch in Arduino IDE ) Sketch  void setup () { // initialize digital pin LED_BUILTIN as an output. pinMode (LED_BUILTIN, OUTPUT); } void loop () { digitalWrite (LED_BUILTIN, HIGH);...

notes on using infrared (IR) break-beam sensors with Arduino

Image
Infrared (IR) break-beam sensors are widely used in various applications, including object detection and counting systems. These sensors operate by emitting an infrared beam from a transmitter to a receiver; when an object interrupts this beam, the sensor detects the obstruction. Integrating IR break-beam sensors with microcontrollers like Arduino enhances their functionality, enabling real-time monitoring and control. This post provides a guide on interfacing IR break-beam sensors with an Arduino board. A sample Arduino sketch that demonstrates how to set up the sensor and utilize its readings to control an LED and output status messages via the serial monitor is exemplified. The code initializes the sensor pin with an internal pull-up resistor and continuously monitors the sensor's state to detect beam interruptions. Example Materials - Arduino UNO - USB cable - infrared (IR) break-beam sensors - breadboard - wires Setup Sketch /* IR Breakbeam sensor demo! */ #define LEDPIN 13 ...

notes on expressing an ESP32 microcontroller dev kit through a 16x2 LCD

Image
Interfacing a 16x2 LCD with the ESP32 microcontroller is a common practice for displaying data directly from the microcontroller, enhancing user interaction in embedded systems. The ESP32, known for its robust processing capabilities and integrated Wi-Fi and Bluetooth, pairs effectively with LCD modules to present real-time information such as sensor readings, system statuses, or user prompts. This post provides a practical guide on connecting a 16x2 LCD to an ESP32 detailing wiring connections, GPIO pins to use, and offers an example Arduino sketch utilizing the LiquidCrystal library to initialize the display and print messages. Example Materials - ESP32 DevKitc - USB cable - LCD 16X2 - potenciometer - breadboard - wires Setup Sketch // include the library code: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd ( 14 , 12 , 27 , 26 , 25 , 33 ); void setup () { // set up the LCD's number of columns and rows: ...