Tag Archives: arduino

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. Advertisements

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 , , , , | 6 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

Controlling an IoT Yunshan ESP8266 WIFI Network Relay via an Amazon Echo/Alexa

Easy-Peasy, if you’re standing on the shoulders of giants! Here’s the demo code: Details The following libraries are required: 1. ESPAsyncTCP library 2. FauxMoESP library (to download, select download repository) References Emulate a WeMo device with ESP8266 Easy Alexa (or … Continue reading

Posted in iot | 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