May 07, 2019 / by Sergey Kapustin

Generate Modbus Reader and Writer for RuiDeng DPS

While working on a steering mechanism for my robot, I wanted to record the current draw of the motors. The data would give me a rough idea about the friction in the mechanism so as to decide whether I need a different motor controller or different ideas. How can I go about collecting the data?

Read more

January 09, 2018 / by Sergey Kapustin

Custom Protocol for Serial Link Communication

After spending your time on learning advanced “hello world” tutorial of some third-party library, and trying to code something more useful, you hit your first problem. Scavenging the internet for help on seemingly simple issues burns more of your precious time with little return. You think - there has to be a better way to move your project along.

Read more

December 18, 2017 / by Sergey Kapustin

IR Sensor ADC trigger, Median Filter, Analysis

Have you thought of how to filter the data coming from an analog sensor? Why do you even want to filter that data? Should you use arithmetic mean or median? Why can’t you just grab a sample from Arduino::analogRead() and be done with it?

Read more

December 06, 2017 / by Sergey Kapustin

IR Sensor Noise, Capacitor and Power

After connecting an infrared sensor to my Arduino, I noticed that an ultrasonic sensor, which is connected to the same board, started reporting inconsistent measurements. The investigation took me a few hours, but now I know better to pay attention to the power requirements for electronic components.

Read more

December 04, 2017 / by Sergey Kapustin

Ultrasonic Sensor Range Value Notifications

MaxSonar sensor can continuously update my Arduino program with the range values. Instead of writing serial, blocking polls to get the sensor’s data, I let the sensor push it to the Arduino.

Read more
Older Entries Newer Entries