Arduino Projects Revisited Revised
This series of projects were originally written for the Raspberry Pi and are being ported over to Arduino. The goal of many of my hardware projects is the ability to move across multiple devices with the same general code structure.
WiringPi is a Raspberry Pi library that uses Arduino type commands on the RPi GPIO which makes some programs easy to rewrite. But there are big differences in particular to hardware access and a full Linux based system using ANSI C versus a microcontroller. In particular I2C differs a lot and I make use of a lot of I2C devices. Here I'm not interested in WiringPi, but note the Raspberry Pi project listing below.
I mostly use a generic Arduino Nano or Leonardo clone. The Arduino was far easier to program and has many functions not listed in the reference. The following devices are explored with debugged and working code is presented:

The I2C based LCD display no longer uses special Arduino libraries other than the Wiring.h library. We learn how the code really works making it easy to port the code over to Microchip PICs or even Python under Raspberry Pi.
Explain the programming and operation of the ADS1115 a 4-channel 16-bot analog-to-digital converter. (This is an I2C device.) I use this to read the output voltage from a TMP37 analog Centigrade temperature sensor and display the sensor voltage and temperature reading on the Arduino serial monitor and the I2C LCD display.
I also read a potentiometer connected to an Arduino analog-to-digital input then write the data to a MCP4725 digital-to-analog converter and measure the output voltage with a voltmeter.
While it's true Arduino has 5-6 ADCs the 10-bit resolution pales next to the 15-bit resolution of the ADS1115. Yes with a capacitor and resistor we can create a crude DAC with Arduino PWM output, but the performance of the MCP4725 is far superior.
For earlier Arduino Projects see Arduino Projects Hobby Projects Tutorials
- Arduino Projects Revisited Revised
- Programming ADS1115 4-Channel I2C ADC with Arduino
- Arduino uses ADS1115 with TMP37 to Measure Temperature
- Connect Arduino to I2C Liquid Crystal Display
- Arduino Reads Temperature Sensor Displays Temperature on LCD Display
- Arduino with MCP4725 12-bit Digital-to-Analog Converter Demo
- Videos
- Arduino with ADS1115 4-Channel 16-bit Analog-to-Digital Converter
- Arduino with MCP4725 12-Bit DAC
- Arduino Nano Test Template
- Arduino Solid State Relay Motor Enable Control
- Arduino Blink LED Tutorial
- Arduino SSR Power Enable Program
- SSR Based High Voltage H-Bridge
- Arduino H-Bridge Motor Control Program with LCD Display
- Arduino XOR Blinks LED
- Arduino IF Statement Code Examples
- Arduino Motor Control Program Using IF
- Connect-Program Arduino and a MM5451 LED Display Driver
- Arduino and a MM5451 LED Display Driver YouTube
- Programming Arduino and the 74HC595 Serial Shift Register
- Programming Arduino and the 74HC595 Serial Shift Register YouTube
- Battery Charger related:
- Solar Panel Charge Controller Using Arduino Microcontroller
- Solar Panel Charge Controller Using PICAXE Microcontroller
- Solar Panel Battery Charge Controller Using Arduino
- Solar Panel Battery Charge Controller Switching Circuit
- Solar Battery Charger videos:
- Solar Panel Battery Charge Controller Operation
- Solar Panel Battery Charge Controller Circuitry
- Solar Panel Battery Charge Controller Programming
- Tutorial Arduino Measure Current with ACS712 Hall Sensor
- Arduino Port Registers Revisited
- Digispark ATtiny85 with MCP23016 GPIO Expander
- Safely Build Program a H-Bridge
- Build H-Bridge Motor Control Without Fireworks
- MOSFET H-Bridge for Arduino 2
- Using Zero-Crossing Detectors with Arduino
- Hardware Interrupts Demo and Tutorial for Arduino
- In Depth Look at AC Power Control with Arduino
- Micro-controller AC Power Control Using Interrupts
- Light Activated SCR Based Optocouplers Circuit Examples
- Solid State AC Relays with Triacs
- YouTube
- Zero-Crossing Detector Circuits and Applications
- YouTube Zero-Crossing Circuits for AC Power Control
- In Depth Look at AC Power Control with Arduino
- Micro-controller AC Power Control Using Interrupts
- YouTube Video Arduino AC Power Control
Web site Copyright Lewis Loflin, All rights reserved.
If using this material on another site, please provide a link back to my site.