Questions tagged [arduino]
Arduino is an open-source electronics prototyping platform.
91 questions
17votes
1answer
1kviews
Arduino Snakes and Ladders
Here is a snakes and ladders game I made using an Arduino using a serial terminal, a set of addressable LED's to create a physical game board, a 7 segment display, and a piezoelectric to create sound. ...
13votes
2answers
799views
Wireless Rickroll using Arduino
This is a script I made for the ESP8266 that uses the Wi-Fi chip and creates a new Access Point every 5 seconds in order to display a message on WiFi lists on nearby devices that looks like this: The ...
11votes
1answer
2kviews
Door-opener program
I've been working on a little project on an Arduino and I need some help with making the code more efficient / cleaner. I really don't like the three for loops and ...
9votes
1answer
1kviews
Arduino Code for Talking to an RFID Reader
I've written some C++ code, intended to run on an Arduino, the purpose of which is to talk to SparkFun's Simultaneous RFID Reader. The current situation: The code runs fine, most of the time. However,...
8votes
2answers
1kviews
Gyrometer/accelerometer sensor fusion with sigmoid transfer function
I noticed, that accelerometer and gyrometer sensor data tend to have problems. The gyrometer is not very precise and the accelerometer is getting problems with vibrations. I built a quadrocopter (to ...
8votes
2answers
1kviews
Digital clock with many functions
I made a digital clock with the use of an RTC (DS3231) and an LCD (16x2). Current functions: Display time Display date (different formats) Display temperature (Celsius and Fahrenheit) Display day ...
8votes
1answer
99views
Process bytes and check for start key
I am working with some wireless communication in Arduino. My data will be wirelessly received like so: 97 97 97 ... ... 979797 is the address of the transmitter. ...
7votes
2answers
650views
Arduino library to simplify differential drive robots
I've written code for an Arduino library to abstract away some of the underlying logic in a particular way of moving robots. Code is posted after explanations. I'm not assuming a high degree of ...
7votes
1answer
2kviews
Chess countdown timer for Arduino LCD Keypad
I'm very new to C++ and Arduino, with a background in Python. I've written this code for a countdown timer and a simple menu to set the time available to each player, using button handling code from ...
6votes
4answers
507views
Interactive shell for Arduino
Goal I needed to interact with microcontrollers (ESP8266 & ESP32) via the Serial interface, so I wrote a small interactive shell with the command pattern. The defined commands can either accept no ...
6votes
2answers
506views
Arduino driver for 7 segment display with bit-shift register
This code counts down from 30 to -999 on a 7-segment 4-digit display; it works but I don't know if it is a good way to do it or if it follows best practices. I want to start writing libraries for ...
6votes
2answers
176views
Opinion on performance increase of a robot
Background A prototype of a firefighting robot has been done recently based on an Arduino microcontroller. It has two servos, one laser LED and 2WD motors. The desktop application is done in C# to ...
6votes
2answers
590views
Drift correction for sensor readings using a high-pass filter
An embedded project my team is working on is having issues with sensor drift over time. To solve this, I thought it might work to use a high-pass filter, since the portion of the signal that we care ...
6votes
1answer
159views
De/Serialize uint32_t from/to ASCII to use it in Arduino code
Despite the intention is to use it in a C++ project I put the c tag also because there is nothing C++-only (except references :)) in the code (I did not compile it ...
6votes
1answer
104views
Arduino controller to control the backlighting of a gear selector
Background The gear selector on a car allows the driver to select which state the transmission should be in. In the example picture, one of the five letters (P, R, N, D & S) lights up to indicate ...