Category Archives: arduino

Arduino GPS-based Lap Timer Revisited

GPS-based lap timing code is located here. The source code provided is an MSVC program used for testing purposes. This is simply the basic algorithms needed to function. Very little error checking is performed by the program. It can easily … Continue reading

Posted in arduino, c | Tagged , , | Leave a comment

Arduino BBQ Fan Temperature Controller

Commercially sourced BBQ temperature controllers are expensive. They start at about US $200 and average well above $300. Most include WIFI interfaces too. So I thought I could do better. This is the first step in making a BBQ temperature … Continue reading

Posted in arduino | Tagged | 13 Comments

Blynk-ing an ANAVI Light Controller

The ANAVI Light Controller is an open source hardware WiFi development board. As the name suggests it controls 12V RGB LED strip lights and can retrieve data from various I2C sensor modules for temperature, humidity, light and gestures. In this … Continue reading

Posted in arduino, iot | Tagged , , , | Leave a comment

Using a Sonoff S31 with Blynk

This post will describe how the Itead Sonofff S31 can control a household AC electric device with a cellphone loaded with the Blynk application. Additionally, we can use the S31 to monitor energy usage by keeping track of real-time power, … Continue reading

Posted in arduino, iot | Tagged , , | 6 Comments

Blynk & Amazon Echo (Alexa) Controlled Lights via Smart Wall Switch

Works like a charm. See this post for a discussion about reverse-engineering the wifi smart wall switch and how to program it. The Blynk application uploaded to the Lyasi smart switch is below.

Posted in arduino, iot | Tagged , , | 2 Comments

Re-programming a Lyasi ESP-8285 WiFi Wall Switch

I purchased a couple of Lyasi wall switches from amazon.com for $24.99 USD. There are several versions (GresaTek, Jesiya, NewRice, etc) available through amazon, ebay and various other web outlets, however they appear to be very similar with only minor … Continue reading

Posted in arduino, iot | Tagged , , , , | 8 Comments

Modify Arduino Optimization Levels on the Fly

Do you know and understand how compiler optimization is altering your code? Higher optimization levels can reveal problems in some programs that are not apparent at lower optimization levels. Volatility One method to prevent optimization issues with variables is to … Continue reading

Posted in arduino, avr | Tagged , , , | 1 Comment

ATMEL Studio 7 Does Blink in Assembly Language

See the previous post (here) for detailed information on AS7 installation and simulating of an Arduino program execution. As an exercise to gain familiarity with AS7, lets make an assembly language project using the below Blink code: • Select “File>New>Project”. … Continue reading

Posted in arduino, assembly language | Tagged , , , , , , , | Leave a comment

Using ATMEL Studio 7 for Arduino Development

While installing ATMEL Studio 7 (AS7) is not required in order to learn inline assembly language programming, it has worthwhile advantages. The ability to compile code for the Arduino, run it inside the included Simulator and immediately debug it will … Continue reading

Posted in arduino, avr | Tagged , , , , , , , | Leave a comment

My Cup Overflows

When performing math (even basic addition and subtraction) with signed numbers an overflow problem sometimes arises. The Arduino microcontroller indicates the existence of an overflow error by setting the overflow flag in the SREG. Here’s a demonstration of the overflow … Continue reading

Posted in arduino, assembly language, avr, avr inline assenbly | Tagged , , , , , | Leave a comment