Software Real Time Clock
This library (called rSoftRtc), is a generic derivative of the device specific library rESP8266rtc v1-03.
@Starchild · 2017-09-10
ESP8266 OTA updates
ESP8266 OTA updates
@BaGRoS · 2017-09-03
Adafruit Motor Shield V1 for Arduino...
Code , using inline C, for controlling DC motors via Adafruit Motor Shield V1
@rbghongade · 2017-08-30
ByteToRGB algorithm
Most of the data that I am processing for use with WS2812B LEDs is 8 bits and the WS2812B libraries (rNSRainbow and rAdafruitNeoPixels) require RGB format. So I needed a way to convert bytes into RGB. I remembered having done so in an earlier Arduino project and was able to translated the algorithm into Basic. The following Basic code can produce a full range of 256 colors.
@Robert Gately · 2017-08-30
Control servo and relays using Nextion lcd display
Control servo and relays using Nextion lcd display
@ilias · 2017-08-30
PCA9685 16-channel, 12-bit PWM SERVO board....
Yesterday I received the breakout board for PCA9685 (I2C,16-channel,12-bit PWM) for servo. Here is the B4R code using inline c .Please install the attached Arduino library.
@rbghongade · 2017-08-22
ESP32 with built in OLED display connected to WiFi - Inline C
SubName: An ESP32 with a built in OLED display screen connected to WiFi. Description: With this example source code you can connect your ESP32 microcontroller with a built in OLED display to your local WiFi network (Access Point) and display whatever you want on the screen.
@Peter Simpson · 2017-08-20
ESP32 with built in OLED display progress bar - Inline C
SubName: An ESP32 with a built in OLED display screen updating a progress bar. Description: With this example source code, you can place a progress bar on the screen of an ESP32 microcontroller with a built in OLED display. You can display and update the progress bar using Inline C extremely easily. It''s a pretty simple looking progress bar but it does look good if you need one in your project.
@Peter Simpson · 2017-08-20
Some code to write into and read from EEPROM on ESP8266
Some code to write into and read from EEPROM on ESP8266
@JMB · 2017-08-05
Tweak the MB-102 power converter
This is actually a Hardware snippet... In many cases you want to use voltage higher than what the MC needs (5v or 3.3v), for example - when you attach motors, or if you need power directly from the source and not limited by the mb-102 current limitation, like I needed to run Raspberry pi by batteries. I soldered one wire to the connections of the plug socket and from now on I need just to connect this pin to the required user. The ground is common to the ground pins of the mb-102.
@derez · 2017-08-04
Reading/Input and Writing/Output using an PCF8575 16 bit I/O extension shield module
SubName: Manipulating all 16 bits/pins from a PCF8575 16 bit I/O IC using only 2 pins from an Arduino.Description: If you are running out of I/O pins on your Arduino based device then I highly recommend that you take a serious look into using a PCF8575 16 bit I/O extension shield module. With the following code you can easily read from or write to all 16 bits/pins of the PCF8575. Writing to the PCF8575 is a simple task of just writing an array of bytes using WireMaster.WriteTo, for example.
@Peter Simpson · 2017-07-30
Http requests with GSM shield
This example shows how to send http requests with a GSM shield. I''ve tested it on a shield with SIM900 module. This can be very interesting for outdoor IoT solutions where there is no local network.
@Erel · 2017-07-06
Queue list [module]
Queue is a FIFO collection. You can add elements to the end of the queue and get the first item.
@Erel · 2017-07-06
Stack collection [module]
An implementation of a stack (last in, first out) data collection.
@Erel · 2017-07-05
Adafruit RGB Led Matrix
This is an Arduino library for 16x32 and 32x32 RGB LED matrix panels
@Erel · 2017-06-30
ESP8266 Check flash configuration - Memory comparison
SubName: ESP8266 Check flash configuration Description: This code tests if the selected EEPROM settings in the IDE matches the actual device that is being used.
@Peter Simpson · 2017-06-29
What is SPIFFS (SPI Flash File System)?
I didn''t really know what SPIFFS stood for. I knew the basics of what it was but still I should have known more about it, so here is some information about SPIFFS.
@Peter Simpson · 2017-06-29
ESP32 touch capable sensing pins
SubName: ESP32 touch pins Description: The ESP32 comes with 10 touch capable sensing pins called T0 to T9, these pins are capacitive and extremely easy to read, so easy in fact that I''m not even going to attach a photo to this post. To manipulate a touch pin, you just have to connect a breadboard jumper wire to one of the touch capable pins, in this example I''m using T0 (Touch0) which is on D4 (GPOI4). Once you have connected the wire to the D4 touch pin, you just have to touch the end of the wire with your finger and then read the results. When you touch the pin with your finger the reading will drop. In the example below the reading drops from 89 to 8.
@Peter Simpson · 2017-06-26
MQTT controlling 8 relays, WeMos D1 mini WiFi, Android 4G
MQTT controlling 8 relays, WeMos D1 mini WiFi, Android 4G
@Peter Simpson · 2017-06-26
Shift Register 74HC595 - Controlling 8+ LED''s with only 3 pins
SubName: Controlling 8 LED''s with only 3 pins from your Arduino through a shift register. Description: Here is some basic code for controlling 8 LED''s through a 74HC595 shift register, you could in fact control a lot more LED''s using multiple shift registers and still only using 3 pins from your Arduino device. You can use shift registers to control anything from LED''s to multiple 8 channel relay modules etc.
@Peter Simpson · 2017-06-17
Interfacing PCF8574 8 bit IO port expander module...
The code snippet interfaces Arduino Uno/ Wemos mini with PCF8574 , 8 bit IO port expander via I2C bus
@rbghongade · 2017-06-06
GFX and Bitmaps
This code uses inline C to store 1-bit bitmaps in the program code (PROGMEM) and draws them with the rAdafruitGFX library. You can use this tool to generate the bitmaps data: https://github.com/ehubin/Adafruit-GFX-Library/blob/master/Img2Code/Image2Code.jar
@Erel · 2017-05-25
Connecting an actual building\house alarm PIR sensor
This is a tutorial on how to connect an actual building\house alarm PIR sensor to an Arduino and how to interpret 5 alert states (the resistance results). The advantages of using the PIR sensor in the following way is that you only need 2 output terminal wires to monitor all the PIR sensor states, you don''t have to buy a new PIR sensor as basically almost any old building\house PIR sensor can be used, doing it this way also cuts down on the amount of source code that you have to write.
@Peter Simpson · 2017-05-20
5V 8-Channel relay module for Arduino
Here is some basic code for switching an 8 channel relay from ''NO'' (Normally Open) to ''NC'' (Normally Closed). The code is initialising each pin (eight pins in total) in a loop and then runs Loopey. In Loopey each relay is being switched from ''NO'' to ''NC'', this is done one relay at a time with a 100 milliseconds delay until all the relays are closed, then the routine is ran again but in reverse switching the state of each relay one at a time until all the relays are ''NO'' again.
@Peter Simpson · 2017-05-14
Mini Battery Display - Inline C
Here is a quick example of inline C being used to power a mini battery display. As there''s no library for this display on the forum, I used inline C with the original Arduino IDE source code. I''ve slimmed down the inline C code to make it easier to read. You can find the original library and source code on Github, just copy the 2 library files into your Arduino IDE library folder.
@Peter Simpson · 2017-05-11
rTTP229 - Capacitive Keypad
Wrapper for ttp229-arduino open source project: https://github.com/arduino12/ttp229-arduino It works with Arduino and ESP8266. Connections are explained here: https://github.com/arduino12/ttp229-arduino/tree/master/TTP229 It can work in 8 keys mode or 16 keys mode.
@Erel · 2017-05-07
Solder ESP8266 ESP-12F to an adapter plate
So you have an ESP-12F and want to use it in a project, well I find that the best way for my home projects is to use an 12x adaptor plate. I have a number of ESP-12F projects running throughout my home and thought that I would share the boards that I use with the forum.
@Peter Simpson · 2017-05-05
How I2C communications works - Video...
How I2C communications works - Video...
@Peter Simpson · 2017-05-02
Set servo angle via potentiometer and show on display
SubName: Set a servo angle and show the angle reading on a OLED display Description: Their are already a few servo examples on this forum, but here is my take on it. I''m using a quality TURNIGY servo and a standard cheap 10kΩ potentiometer. As you turn the potentiometer the display changes to shows you the angle that the servo is set to, reading ranges from 0° to 179°.
@Peter Simpson · 2017-04-19
Reading and display voltage and current made easy
SubName: Reading voltage and current and display the results onto an OLED display. Description: Use the code below to display the voltage and current from load connected to a MAX471 module. The Max471 is a low cost precision high side current sense amplifiers with a maximum supply voltage of 36V. I personally would not push it that high, but putting 25V through it for a 5V Arduino or compatible device is more than adequate.
@Peter Simpson · 2017-04-16