Arduino is an open-source electronics prototyping platform.

learn more… | top users | synonyms

0
votes
0answers
23 views

Random word display on LCD using Arduino Uno [closed]

i m a beginner in coding as well as arduino.. I am working on a project for college in which i am attaching two LCD's to single arduino uno... the lcd's have to display random words from the words ...
3
votes
1answer
39 views

7-segment 4-digit display

Is there a better way to organize the methods within this program without compromising the clarity? Running through digits 0-9 with separate functions seems very bulky. ...
3
votes
2answers
48 views

Two similar libraries for reading pin signals

I have two similar libraries for use in an embedded system (Teensy, sort of like Arduino). One is for debouncing a digital pin, the other is for reading a capacitive pin as if it is a debounced ...
2
votes
2answers
164 views

Algorithm for motion detection using ultrasonic sensor on Arduino

I am using a ultrasonic sensor to detect motion by looking at the variance of the sensor readings, however my algorithm is very prone to give false positives thus erroneously rising a motion event. ...
1
vote
2answers
82 views

Arduino microcontroller based event handler program, send sensor readings over serial bus

I am working on a project with an Arduino microcontroller and a Raspberry Pi. The code will have to do the following: If the variance calculated of the ultrasonic sensor detections exceeds 1000, a ...
4
votes
1answer
50 views

DuckyScript precompiler for Arduino Leonardo

I've made a python program to convert DuckyScript code to Arduino code for Leonardo boards. Below you can find both the project files and a sample script. ...
2
votes
1answer
63 views

Arduino serial data input output

I have created an Arduino sketch that I am using to send and receive data via serial. It works pretty well and doesn't seem go wrong as long as the correct formats are received. Is there anything I ...
4
votes
1answer
92 views

Controlling motors using USB serial connection from Raspberry Pi to Arduino

I am working on building an RC car/robot with Raspberry Pi and Arduino. I connected Arduino to Raspberry Pi using USB and send serial commands with python. I haven't done much programming with ...
5
votes
1answer
67 views

Writing a class to hold Arduino Properties for an Arduino I2C Debugger

I have this class which mostly holds a bunch of properties and their setters. I also have wrappers for some functions of another module. Here is the class: ...
6
votes
2answers
282 views

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 ...
3
votes
1answer
125 views

Searching for a substring in a ring queue

I am implementing a function which searches through a ring queue for a given substring. The function returns true if the substring is found, otherwise false. There is a cell containing null between ...
4
votes
1answer
190 views

Arduino code powering horoscope generator

This code works, in the same way that a cardboard bicycle works until you cycle through a puddle. It powers a box that plays a sound file in sync with some lights on movement detected by a PIR sensor. ...
4
votes
1answer
85 views

Checking that buttons are being pushed

I made a panel of buttons which run commands when pushed. In order to not have the command run on every loop if the button is held down, I am comparing the button to a previous state and only run if ...
0
votes
1answer
31 views

Moving between two angles in a set amount of time [closed]

I need to slowly change from one angle to another angle over a certain amount of time, using the shortest path between them. I have a function that accepts four parameters — the start and end angles ...
2
votes
1answer
450 views

Driving 7-segment displays

I made a little JavaScript app here that let people generate bitmap for generating characters. Currently it generate code of a dictionary. But I want to also generate a example that let them play like ...
1
vote
1answer
69 views

Arduino Sketch for sending sensor turn on/off to computer

I'm having this Arduino Sketch: ...
11
votes
1answer
248 views

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 ...
6
votes
2answers
632 views

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 ...
0
votes
2answers
234 views

Enhancing parser for 8 byte command string (expect problems with type conversions) for Arduino/Radio communication

Because the throughput of my radio and device is limited, I wanted to compress my control string. I decided to compress the command into an 8 bytes (quasi) string (throttle high, throttle low, pitch, ...
4
votes
2answers
503 views

Simple and fair scheduler for function calls on Arduino

because Arduino platforms are fairly limited in its capacities, I wrote a small process scheduler. I append a function to an array and define a tickrate. After this tickrate elapses, the function ...
4
votes
2answers
2k views

Arduino based ultrasonic sensor program, output HIGH to control electric motor

I am brand new to C++ and am working with the Arduino micro controller. The project I've been working on for my university requires me to write code to do the following: If the ultrasonic ...
3
votes
1answer
119 views

Servo commands based on serial port input

Straight to the point: Can you give me pointers on how to make this code more maintainable? In the future, I want to add more more things to this, but first it should be easy to maintain/read. Should ...
1
vote
2answers
264 views

Taking input from push buttons

I want to know if what I have coded is good enough or if there is any simpler/faster/better/less size taking substitute. I am trying to take input from push buttons and I also want to remove repeated ...
6
votes
1answer
369 views

Domotics control system

This is a project about a domotics control system based on arduino. Nothing great; it's only for testing myself and making stuff. Before I started coding this, I searched on the net for some useful ...
3
votes
1answer
3k views

PID Controller library

I'm trying to implement a PID without floating point operations on a micro controller. I appreciate all feedback I can get. Header file: ...
3
votes
1answer
283 views

Feedback on Arduino class for LED circle animations

I'm fairly new to Arduino and C++ in general, coming from a heavy Python background. The code below is functional, but my lack of C++ knowledge is keeping me from spotting any errors in style, idioms ...