Category Archives: c-arduino

Arduino Posts

Writing new Boot Loader to Arduino Nano 33 IOT

Some how I have managed to corrupt the boot loader on two different Nano 33 IOTs now. At $25 a pop, I need to fix the broken ones, not buy more! I don’t know why the Nano 33 IOT boot … Continue reading

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

DTMF Detector / Decoder Circuit

Note1: The FCC frowns upon you connecting devices to the telephone system (the old copper line network a.k.a. POTS). In my testing, this device is connected to a small PBX. When I’m done it will be connected to a VoIP … Continue reading

Posted in c-arduino, c-electronics, c-tinys | Tagged | 1 Comment

Making a Data Only Cable For Teensy/Arduino/Nano

Been working on a complicated teensy project that is going to the other side of the state for testing. So I’ve been building a testing platform that consists of a Raspberry Pi connected to the Teensy via USB. I can … Continue reading

Posted in c-arduino, c-rpi, c-teensy | Tagged | 1 Comment

Remote Monitoring and Upgrading of Arduino/Teensy via Networked Raspberry Pi

This post covers how to remotely monitor / upgrade an Arduino or other MCU behind a firewall. (Jump down to the Dec 2016 Update for Notes about the Duplicity Service that will easily and quickly allow remote access to an … Continue reading

Posted in c-arduino, c-rpi, c-teensy | Tagged | 1 Comment

Using Modulus Arithmetic to Navigate a Circular List

I have to go thru my notes every so often to find the formula for navigating backwards, so I’ll post this stuff here in case anyone else finds it useful. Modulus math is very handy for dealing with circular functions … Continue reading

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

Writing Code to Handle Arduino’s millis() Roll Over

The Arduino’s millis() function returns the number of milliseconds since the arduino started running. It returns an unsigned long, 32 bit, value. A 32 bit unsigned word can contain 0 – 4,294,967,285 (2^32-1). When millis() gets to 4,294,967,285 milliseconds and … Continue reading

Posted in c-arduino | Tagged | Leave a comment

Adafruit Thermal Printer Library haspaper() Function Fix

I posted this ‘fix’ on Adafruits’ forum as well. I have been playing with their mini Thermal Printer (https://www.adafruit.com/products/597). I started testing the haspaper function in their thermal printer library which returns true if there is paper else false. In … Continue reading

Posted in c-arduino, c-electronics | Tagged | 1 Comment

ESP8266/Arduino IDE: Communicating with TCP

Today’s goal is to transmit and receive TCP packets with my ESP-01, building on yesterday’s post, ESP8266/Arduino IDE: Connecting to a Network with WIFI. To make this process a little easier, I will be communicating with an Echo server so … Continue reading

Posted in c-arduino | Tagged | 2 Comments

Sniffing *ALL* Arduino Network Packets

For this post, I’m going to assume you are already somewhat familiar with WireShark/tcpdump for monitoring network traffic. Wireshark is great for viewing packets, but it only sees the traffic coming to/from the system that is running it. Generally, that … Continue reading

Posted in c-arduino | Tagged | 2 Comments

Switch Debouncing and Waiting for a Button Press

For the several years I’ve been working with arduinos I have went thru quite a few variations of switch debouncing. Some I’ve found on line, some I’ve written myself. Most of the ones I’ve found online I felt were kind … Continue reading

Posted in c-arduino | Tagged | Leave a comment