Skip to main content

Questions tagged [code-review]

Code review is systematic examination of your Arduino sketch. It is intended to find and fix mistakes overlooked in the initial development phase, improving both the overall quality of software and the developers' skills.

Filter by
Sorted by
Tagged with
1 vote
1 answer
241 views

I am working on a Seeburg Jukebox wall unit, I have it playing one track at a time form a SD card no problem. But what I need help with being new to programming is: 1. The code is long because it can ...
D man's user avatar
  • 11
-2 votes
1 answer
177 views

I'm wondering if someone could have a look at my code and let me know if there's something wrong with it. I had the code done for me a while back and did a quick test and it seemed to work. I have now ...
Jase's user avatar
  • 1
0 votes
1 answer
2k views

I've been trying to simulate a PID using Brett Beauregard's PID library in order to understand it better. Here is my code. #include <PID_v1.h> const unsigned int numReadings = 500; double ...
Andrew Hardy's user avatar
1 vote
0 answers
81 views

So recently I made code that used two custom sensors that are connected to the analog pin A0 & A5. Schematic can be seen here (http://inmoov.fr/test-your-finger-sensor/). const int ono = A0; ...
Brilliant Purnawan's user avatar
2 votes
0 answers
149 views

I have been trying to create code where my MPU6050 is constantly reading the angle it is at and based on that angle, increase or decrease the motor speed. For example the motor will be off when the ...
miles's user avatar
  • 21
1 vote
1 answer
1k views

I am trying to have my sketch run a short series of tones (melody) through a Piezo buzzer after a selection is made by the user. I am getting a compilation error with my use of the tone function in ...
Stevie_D's user avatar
0 votes
2 answers
981 views

I am trying to create a circuit with one tactile pushbutton, and LCD and two sensors: 1) temperature, and 2) pulse sensor. When the circuit is on, the LCD initially shows the reading from the temp ...
LG_18's user avatar
  • 1
0 votes
1 answer
4k views

i am using the elechouse PN532 RFID Module with an Wemos D1 mini in the Arduino IDE. I use the ISO1443a_uid example from the elechouse library. All works fine if i plug the USB Cable into the wemos ...
user53213's user avatar
-1 votes
1 answer
93 views

I am pretty new to Arduino. I've created a code with the help of many YouTube tutorials to control a servo with a button. I decided it has gotten a little un-exciting so I've been trying to add a ...
Josh's user avatar
  • 1
0 votes
1 answer
983 views

When i run a test code in Newping library for ultrasonic sensor SR04 then in works properly but when i run the actual code for obstacle avoiding robot then it shows 0 cm everytime. This means that ...
Sultan Morbiwala's user avatar
-1 votes
1 answer
523 views

I am using a magnetic float switch sensor to monitor water level in a tank. I am using a ESP8266 board. I am trying to send the data collected by it to a php page in a host called "weris.link". I've ...
Kenneth W. A's user avatar
0 votes
1 answer
41 views

I trying to loop over a function in arduino to get values for 2000 times, and then divide it by 2000 to get an average offset: int16_t x_offset = 0; int16_t y_offset = 0; int16_t z_offset = 0; And ...
alim1990's user avatar
  • 125
1 vote
1 answer
105 views

I am attempting to increase the volume of a Max9744 20 watt amplifier from Adafruit using an Arduino sketch. I am just a very beginner and working with my grandson, this may be more than I am capable ...
Larry C's user avatar
  • 11
-2 votes
1 answer
3k views

I'm using this tutorial from Sparkfun https://learn.sparkfun.com/tutorials/load-cell-amplifier-hx711-breakout-hookup-guide And using THEIR code. The only difference is I added a delay so it wouldn't ...
SnowboardBruin's user avatar
2 votes
0 answers
2k views

Hello Arduino enthusiasts! I've been working on a keypad lock system for school lately and I need some advice.Basically, my code checks if the entered passcode is the same than a predefined passcode ...
Arxkz's user avatar
  • 23
0 votes
2 answers
2k views

I am working on a school project, basically I have to create a lock system that opens a fictive gate when the correct code is entered. We have been asked to simulate our system before actually ...
Arxkz's user avatar
  • 23
0 votes
1 answer
1k views

So I have this code to get ntp time and display it on serial port. But I want to display it on a 1.30 inch I2C oled with a SH1106 controller using the U8G2 library. The only problem is I don't know ...
Akshayk420's user avatar
-1 votes
2 answers
6k views

This is component to make E-Card reader, using arduino uno pn532 Code if (success) { // Display some basic information about the card Serial.println("Found an ISO14443A card"); Serial....
Asep E Roni's user avatar
0 votes
1 answer
2k views

I am trying to combine codes for my 3 sensors: GSR, Pulse sensor, and ECG but I keep getting errors. I have a poor background in coding. I have the 3 codes separately and I'm not the one who wrote ...
D.Sindi's user avatar
  • 11
2 votes
2 answers
15k views

I'm working on a project to send ultrasonic sensor data to my webserver. For that I'm using ESP8266 WiFi module, 3.3V regulator IC by giving input volt of 5v from aduino uno. I successfully uploaded ...
Touseef ahmed's user avatar
0 votes
2 answers
2k views

Whenever I upload the following program I am getting error message showing "expected initializer before interval". Kindly Help me to solve out this probleme. const byte button=2; const byte LED=10; ...
Josephazim's user avatar
-1 votes
2 answers
4k views

#include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #include "Arduino.h" #include "SoftwareSerial.h" #include "DFRobotDFPlayerMini.h" #define M11 2 #define M12 3 #define M13 ...
arg3t's user avatar
  • 31
0 votes
1 answer
2k views

I am new to Arduino. I am learning from Arduino Cookbook. I was using tinkercad.com for running my Arduino code. But it is not working. The Serial monitor should show the key which I have pressed on ...
Chandramauli Chakraborty's user avatar
0 votes
1 answer
2k views

I working at air quality station. I measure particulate matter with PMS5003 and meteorological parameters with BME280. Everything seems to work just fine, but sometimes program hangs on checksum ...
Bartosz's user avatar
-1 votes
1 answer
912 views

I even rewrote the code and it still didn't work. How can I fix this? #include "pitches.h" void setup() { // put your setup code here, to run once: pinMode(4, OUTPUT); } void loop() { // ...
Alpha's user avatar
  • 11