We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [arduino-uno]

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

Filter by
Sorted by
Tagged with
0
votes
2answers
35 views

arduino circuit review/ safety review

I have the following circuit It has a simple dc motor that is OFF, and switches ON once a day for 2 seconds. I use MOSFET IRF540N as a switch I use L7805CV as a voltage regulator I would like to ...
1
vote
2answers
152 views
+100

Issue connecting heartbeat & temperature sensor on arduino uno but working individually

So the code is working individually for temperature sensor and for heartbeat sensor but when i combine it together it shows wrong values for the temperature sensor I'm using lm35 temperature sensor ...
1
vote
1answer
142 views

Error Compiling sketch for Arduino Uno(ld return 1)

I have got an telnet server with esp8266 + SoftwareSerial+ UNO, and here I want to on led with command ON . will be 1 or 2. It is for recive 1 or 2 numbered pins. And I extract pin from request with ...
0
votes
1answer
17 views

How to set current position for the DC motor to zero + store current positions in an array and run it?

I would like to know how to set the current position for the DC motors to zero and store the current position in an array. after that I would like it to loop in the array to run all steps that was ...
0
votes
0answers
18 views

Extend Pyduino over wireless network

I followed a guide to control my arduino uno using a python web server API (flask), and it works like a charm using the COM port on my PC. I would like to extend this over the network with an ESP8266 ...
0
votes
2answers
28 views

Protect the Arduino make with Unique Id

I’d like to protect my arduino make with a unique serial number for every device I make. What are the proper ways to do it? Probably there are kind of best practices… Keep it in EEPROM is obviously a ...
0
votes
1answer
14 views

Can i combine an ultrasonic sensor and gps together?

I need to operate 2 different sensors by Arduino UNO: GPS module and Ultrasonic sensor. I have managed to run each one of them separately and I don't know how to manipulate the code; GPS MODULE #...
0
votes
1answer
75 views

Are there any alternatives to Tinkercad Circuits that is PC application based instead of web app based?

I have been using Tinkercad's Circuits web application to create my Arduino circuits and apply my Arduino code (c++) for testing. Despite the amazing product they have and the fact it's free, I find ...
0
votes
1answer
352 views

BASCOM-AVR stk500_2_ReceiveMessage(): timeout: -1

Arduino Uno R3 Windows 10 Bascom AVR The ON is alright. The LED flickers now and then. The RX and TX flickers when I press the program button on Bascom but then disappears almost immediately. ...
0
votes
0answers
26 views

Code running on UNO doesn't run on MEGA

the code posted below runs perfectly on UNO, but the loop only runs for twice or thrice (figured this out by printing out "TEST" on the Serial Monitor) on the Arduino mega. Someone can tell me what's ...
0
votes
2answers
52 views

Servo Motor in function

I have a project with 9 servo, I want to make a function to control each separate. Only that he is not accepting the servo as a parameter. Can someone tell me if it is possible to pass the servant as ...
0
votes
2answers
175 views

Detecting how many button presses with two simultaneous buttons

noob here So what I am trying to do is output a different number depending on the number of button presses e.g. for 1 button press it should output 1 and so forth. After that I only really want the ...
1
vote
1answer
48 views

How to Measure many voltages (Uno) - Analog extenders a good option?

I am trying to make a battery capacity tester (3.7v li-ion 18650 battery) using arduino uno. If possible i'd like to test 20 or more batteries at the same time. I need to measure the voltage of each ...
0
votes
0answers
22 views

Arduino with mcp2515 module

I don't know if I can describe the problem exactly to you, so I can get some feedback on how to solve this. This is the problem: I'm using two arduinos; one sending and one receiving with an mcp2515 ...
-1
votes
1answer
3k views

IOT-GA6 gsm module Arduino +CME error 58

I've recently bought a IOT-GA6 gsm module . I want to use it to send an mms but doesn't work. The SMS and call work. When I execute the void function (mms) the monitor shows the error message +CME ...
0
votes
3answers
22 views

ATmega328P - Problem using timer 2 for tone generation

I'm simply trying to use timer 2 for tone generation and what I get is a very faint and strange tone (almost like its modulated somehow as there is a "pulsing" to it). Here's my simple code: #include ...
1
vote
1answer
28 views

number generator show wrong segments on 7 segment display

I created a program to show a random number on a 7 segment display. It shows a random number in the serial monitor but always shows the same segments 'a c d and g'. anyone know hopw to fix this ...
0
votes
1answer
116 views

Reading a monochromatic bitmap with Arduino for plotting

Complete newbie here. I am following this thread: How to read bitmap image on Arduino Specifically the third reply from : frarugi87 in my attempt to plot a monochromatic bitmap image with a plotter ...
0
votes
1answer
8k views

Reading 4 to 20ma pressure sensor using uno

I have a OsiSense™ XMLP pressure sensor that I want to read from my Arduino uno. This is the circuit I am looking at building for measure 4 to 20 milliamp. I've read online to find out how to build ...
0
votes
2answers
33 views

It gives some glitching on 7 segment display

It gives the right value on the monitor but it doesnt display the value on my display. int pinNumb[7] = {2, 3, 4, 5, 6, 7, 8}; int num_array[11][7] = { { 1, 1, 1, 1, 1, 0, 1 }, // 0 { 0, 1, 1, 0, ...
16
votes
6answers
88k views

How do I know the sampling frequency?

I am beginning to get a bit confused about sampling rates and baudrates etc. I have this Arduino code: #include <eHealth.h> extern volatile unsigned long timer0_overflow_count; float fanalog0;...
0
votes
0answers
41 views

NRF24l01 receiving only zeros

I want to transmit and receive data with the help of NRF24l01 modules. I tried to deliver joystick values from UNO to UNO but I have trouble about it. In receiver side I have only zeros. I have been ...
2
votes
2answers
853 views

HX711 sporadic wrong values

Am interfacing HX711 with arduino to measure the load of something. However, in my project, I need to continuously monitor the load. I get fairly accurate values most of the time however, at times I ...
0
votes
0answers
29 views

Will this code for braking of dc motor using sensor work?

#define trigPin 13 #define echoPin 14 #define e1 10 // Enable Pin for motor 1 #define t1 8 // Control pin 1 for motor 1 #define t2 9 // Control pin 2 for motor 1 #define led 3 #define led2 5 #...
-1
votes
2answers
1k views

Can I connect more than one IR receiver to an Arduino Uno?

I want to use #include <IRremote.h> to receive information from an infrared remote control. It works perfectly with one IR receiver. But I want to put three or four IR receivers: IRrecv ...
0
votes
1answer
3k views

Running C for arduino

Is there a compiler that I can use to run C on an arduino or any other way so that I can upload C programs to my arduino?
2
votes
1answer
688 views

avr-g++ (or avr-gcc) and LiquidCrystal library

I'm trying to run a simple Hello World program from Arduino 1.6.5 from terminal. When I run it in Arduino IDE, it works good. When I'm trying to get it by avr-g++ I have hard way to figure out how to ...
0
votes
0answers
16 views

Arduino UNO: Autonomous Firetruck Coding (Fire Detection) and Connection (Water Pump) Problem

I am currently working on an autonomous firetruck project. Its already doing obstacle avoidance however, I still don't know the proper code for fire detection. It already detects fire but what I want ...
1
vote
1answer
23 views

cant figure out how to fix this compile error

evrything worked for a bit and changed to much to get it working again. dont really understand the error. [![C:\Users\bavob\AppData\Local\Temp\ccyfrkaL.ltrans0.ltrans.o: In function `loop': C:\Users\...
1
vote
1answer
13 views

I can't receive string that I have sent through nrf correctly

I'm using arduino uno and nrf24l01. to monitor sensor data. But this is the message that master receives: ⸮ this is my slave code. void monitoring() { delay(10); radio.stopListening(); ...
0
votes
1answer
36 views

DS3231 + button to trigger light

please can someone help me with code, i want to have automatic trigger on specific hour, also i want to have button switch if needed, in my code i can press the button to trigger light relay, but my ...
0
votes
1answer
31 views

I2C code working on Mega 2560 but not on Uno and nano

I have recently purchased this Heart rate sensor and was trying to make it work. I used this MAX30100 library I found on Github. For some reason when I use any of the given examples, they seem to work ...
0
votes
1answer
35 views

Having trouble figuring out CTC on Timer 1 with ATTiny85

I'm using Timer1 on the Attiny85 clocked at 1MHz to toggle an LED every 1 second. However, I'm having some issues regarding prescaler and OSC value selection. I'm using this formula, which I found in ...
0
votes
2answers
22 views

I have to make an LED with an ultrasonic distance sensor, the idea is to make the LED blink faster when getting closer to at an specific distance

i alread have this code, but i do not know how to make the led blink. CODE: const int ledPin = 6; // The pin of your LED, D06 const int trigPin = 5; // The pin to which the TRIG is connected, D05 ...
0
votes
2answers
34 views

How to read input pin on MCP23017?

I'm working to develop a simple code for MCP23017 that I want to use to run LCD128x64. I was succeeded to set IODIRB as output and blink LED as a test. Now I want to read the pin state, but I couldn'...
0
votes
0answers
34 views

Program not running when uploaded [duplicate]

I made a simple code for my Arduino Uno with a servo motor: #include <Servo.h> Servo myservo; void setup() { myservo.attach(10); } void loop() { ...
0
votes
2answers
183 views

Accelstepper.runToPosition() is working fine. Accelstepper.run() does nothing

I have a complex sketch with Arduino Uno, Bluetooth Serial Com using altSoftSerial, serial com using SoftwareSerial and Serial communication with PC. I want to move one stepper motor and stop it when ...
2
votes
1answer
2k views

nRF24L01 module using Mirf library was working and then stopped

I have two nRF24L01 modules, they are both attached to a sensor shield that has special ports for this type of module, on Arduino Unos. I have this code on the Arduino that is sending the signal: #...
0
votes
0answers
36 views

How do change my Arduino Uno from an unknown device to a port?

I have an Arduino Uno that I have connected to a servo motor. I used an adapter to plug it into my computer and my computer said "Setting up a device, this will only take a minute". When it was done ...
0
votes
1answer
29 views

Reset I2C connection with arduino as slave

I am currently using I2C serial communications with arduino as slave and raspberry pi as the master. I am sending sensor data from arduino to raspberry pi. I need to reset the I2C connection once the ...
0
votes
1answer
35 views

Change From One State Machine To Another

I have a project where I need to state from leds turning on and off to another one that will have all the leds turned on and send data and I was wondering how should I do that, this the code I have: #...
-1
votes
1answer
14 views

Two adruino are connected to the raspberry via usb, but one is reconnected during processing code is running

I try to solve this a month..but still problem... I want to make below led-matrix spectrum. Thumbnail image https://youtu.be/X35HbE7k3DA ※Environment Device UML One Raspberry pi 3 : 2019-09-26-...
-1
votes
1answer
35 views

How to wait a certain time before doing something while running other code?

I have a project where I'm using the HX711 library with a loadcell to weigh in a fruit that is on a conveyor belt. Each fruit has a weight which needs to be classed. The bigger fruits (200g) are class ...
0
votes
0answers
9 views

SIM900A No response at all

I am unable to communicate with the SIM900A (model#:s2-1040W-z091d). I am supplying with an external psu with 5v 1.5mA to the SIM900A connection (SIM900A)RX to (Arduino)PIN3 (SIM900A)TX to (...
-1
votes
1answer
50 views

Code causing Servo motor not to work!

My sketch is compiling and loading, but when the program runs, the Servo motor does not work. The buttons work, the LED light works, Piezo buzzer plays the melody, the Stepper motor works but not ...
0
votes
1answer
19 views

Trouble with PID code, variable error_x acting strange

I'm trying to get error_x and error_y to display the difference between the target and the position. For some reason I cannot get error_x to function correctly. error_y has the same code, but works ...
-3
votes
0answers
36 views

Why I got this error message redefinition of message

//INCLUDED LIBRARIES #include <GPRS_Shield_Arduino.h> #include <SoftwareSerial.h> #include <Wire.h> //SERIAL PIN ASSIGNMENT, BAUDRATE, PHONE NUMBER, MESSAGE #define PIN_TX 2 #...
-4
votes
0answers
29 views

What is the problem here? 😭 Please help [duplicate]

//INCLUDED LIBRARIES #include <GPRS_Shield_Arduino.h> #include <SoftwareSerial.h> #include <Wire.h> //SERIAL PIN ASSIGNMENT, BAUDRATE, PHONE NUMBER, MESSAGE #define PIN_TX 2 #...
0
votes
0answers
36 views

Please help. Error message “sendSMS not declared in this scope” im frustrated. :(

//INCLUDED LIBRARIES #include <GPRS_Shield_Arduino.h> #include <SoftwareSerial.h> #include <Wire.h> //SERIAL PIN ASSIGNMENT, BAUDRATE, PHONE NUMBER, MESSAGE #define PIN_TX 2 #...
-1
votes
0answers
15 views