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
0answers
7 views

Can ESP32 used for mobile game controller?

I have a term project: I need to develop a mobile game(Guitar Hero Like rhythm game) probably on Unity and I need to develop a custom controller for this game that works on android device. There will ...
2
votes
2answers
56 views

Getting different numbers after sending an unsigned int 8-9 times between Arduinos via Serial

I am trying to transfer unsigned int values between 2 Arduinos. When sending 61805 for the first 8-9 times, I am getting 61805. But after then after these numbers: 61937 28013 61937. Sender's code: ...
1
vote
0answers
11 views

Can I Control My Android Game with Arduino Gamepad

I have a project that I need to make a game(guitar hero like rhythm game) on unity for android and develop a custom controller for it that works on mobile game. I decide to use Arduino and hc05 module ...
1
vote
0answers
20 views

Arduino mega PinChangeInterrupt with 16 bit timer

With reference to this question ::I have written a program by using 16-bit timer, The program is as follows . volatile uint32_t ovfCount = 0; struct Pulse { uint32_t last_toggle; uint32_t width; ...
1
vote
0answers
18 views

Not Receiving HC-05 data

I've been trying to use this HC-05 bluetooth module for a project, where the data would be sent to a Max/MSP/jitter program. Initially, every time I connected my bluetooth device to my computer, it ...
1
vote
1answer
40 views

Issue using Arduino Mega Timer2 with PinChange Interrupt

I was working on a program to measure the pulse width , for that I thought of using Timer 2 in Arduino mega along with pin change interrupt, The program I have written is as follows volatile float ...
1
vote
0answers
13 views

Stepper Motor Inconsistent Jittering

I am trying to run a stepper motor using an Arduino stepper motor shield like the Adafruit V1 motor shield. In my code I am just trying to get the motor to rotate forwards and backwards. When I first ...
1
vote
0answers
38 views

How to send commands from ESP8266 to Arduino

I am fairly new to the Arduino ecosystem in general but I will try to explain what I am trying to achieve in the best way possible. I am still not sure what technically I want to do so hopefully ...
1
vote
0answers
34 views

l298N PWM motor control with Uno is not functioning correctly

I'm working on a self-balancing robot. The self-balancing is not the issue. The issue is that the motors don't respond as they are supposed to. I would understand if it were unable to balance, but the ...
1
vote
0answers
20 views

Is there any way to do real time voice communication via bluetooth on arduino?

Is there any way to send and play voice between two arduino projects which has connected via blutooth modules. 1st device ( sender ) : has microphone and bluetooth module to send voice. 2nd device ( ...
0
votes
1answer
196 views

Program size optimization

I am trying to spare a few bytes of program size. I faced a problem which I cannot understand and I hope somebody will help. Look at this empty sketch, pleas. It takes just 444 bytes: void setup() { } ...
1
vote
0answers
15 views

Ethernet Shield not connecting

I've mounted an Ethernet Shield on top of an Arduino UNO. The Arduino is connected via usb to my pc and to the network via ethernet through a switch. I'm running a simplified verison of the WebServer ...
0
votes
1answer
29 views

Does setting a value always mean setting a Arduino pin?

One thing that always confused me was why we use int or other commands to set the variables to have pin numbers as if those commands were always restricted to pin numbers only. For example int ledPin =...
0
votes
1answer
41 views

Calculate Timezone from GPS Coordinates

I have a uBlox NEO-6M GPS module and it is outputting longitude and latitude. It is also outputting time which is UTC. I want to use the GPS coordinates to calculate the timezone and then subtract and ...
-1
votes
0answers
12 views

How to interface lcd16*2,mlx90614(sensor),keypad4*4,esp8266 with Arduino uno?

Im trying to make a covid monitoring system, in which the keypad will take user input , i.e the user will type his phone number in which the tracker will check if the given number is in the cloud(...
1
vote
1answer
28 views

Sense person connected to TENS unit

So let's say I use a store-bought TENS unit for liability. I want to make a challenge where you need to hold on to the TENS unit for 10 seconds before it activates a solenoid. How can I have an ...
1
vote
1answer
58 views

Arduino send commands fast

I need cnc machine to run as smooth as possible. It receives commands like this "M_XY 10.233 20.123". If i send command by command there is a slight delay between commands and its noticeable....
0
votes
1answer
30 views

Convert a char array to Flash string

I would like to pass a formatted string to a method that accepts a __FlashStringHelper. Here is the method signature: void myMethod(const __FlashStringHelper *str); I have been using snprintf to ...
0
votes
1answer
51 views

MAX471 giving too high current readings

I want to measure current using the MAX471 sensor that outputs voltage proportional to the current (1V/A according to the datasheet). To test the module, I connected a 330 ohm resistor to the sensor ...
1
vote
0answers
26 views

Arduino Ultrasonic Sensor AnalogRead

i have an ultrasonic sensor. The sensor normally works stably. But I have to carry the data cables of this sensor for 50 meters and take reading. When i do this, when I extend the cable, the values I ...
0
votes
0answers
49 views

How to erase Arduino memory through hardware [closed]

I have an Arduino that I turned into a rubber ducky. But I made a serious mistake. I put the whole code inside void loop(), that's why whenever I connect it to my computer, it executes the script ...
4
votes
1answer
54 views

HobbyTronics UNO PRO Board Definition does not work in newer IDE versions

I have a HobbyTronics UNO PRO that replaces the UNO's 328P in DIP with an ATMega1284 on an adapter board: I cannot link to the original page since it does not exist anymore. But, it is available ...
1
vote
1answer
30 views

Message parsing from MQTT server

I'm making a NodeMCU based home automation. I adapted code I found on internet for controlling a device (say LED) via MQTT broker hosted on a Raspberry Pi. It works fine. But when I try to scale it up ...
0
votes
0answers
22 views

read from serial monitor then store char in array then print it , please help

Build a program that will accept a name at the keyboard and then puts the name into a 1-D array. Then, use the contents of the array to print out the name.
-1
votes
0answers
30 views

circuit board arduino designer

I have developed the last weeks with different Arduino Shield an Arduino prototype. Now I would like to bring the whole thing on a circuit board is there an easy way how I come to such a circuit board ...
0
votes
1answer
41 views

How to close humidity sensor at specific humidity

I am using dht humidity and temperature sensor on arduino and i would like to add relay and buzzer on the system. What I would like to do is to close it via buzzer and on 65% humidity run buzzer. The ...
1
vote
1answer
27 views

Multiple IR Sensors with Arduino

I am fairly new to working with sensors and Arduino. I am working on a project using Max MPS to control the volume of three audio files. There will be three framed photos, each having its own IR ...
1
vote
1answer
17 views

IRremote and PCM sound libraries interfering

I have a simple sketch which sends IR codes, plays a sound and toggles an LED when you press a button and toggles another LED when it receives that code. The idea is that I have two Arduinos with this ...
1
vote
0answers
19 views

ESP8366: ets Jan 8 2013,rst cause:4, boot mode:(1,7)

I am trying to control esp8266 esp 01 with Alexa This is my code: #include <Arduino.h> #include <ESP8266WiFi.h> #include "fauxmoESP.h" #define ssid "admin" #define ...
0
votes
2answers
59 views

Can a 12V sensor connected to a 5V output signal of an Arduino Uno

I am doing a project for object detection. But my problem is I'm using a 12V photoelectric OMRON sensor to connect with 5V Digital PWM port 3 on Arduino using normal coding. Do I need an extra circuit ...
1
vote
0answers
27 views

How to install CH340G in iOS

I have bought a new Arduino UNO and it works on CH340G. I want to code it using iOS phone, don't have a PC is there any way to install CH340G driver for iOS.
1
vote
0answers
27 views

Getting error while using conditional preprocessor to define macro [closed]

int parity = 1; // DATA, PARITY, and STOP BITS SETTINGS #if parity == 1 #define PARITY SERIAL_8N1 #elif parity == 2 #define PARITY SERIAL_8O1 void setup() { Serial.begin(9600, PARITY) } ...
0
votes
2answers
51 views

Can I use the microchip of Arduino Uno as a standalone microcontroller

I want use the ATmega328P chip of the Arduino Uno board as a standalone device. Is that possible? Which pins are which on the Arduino board and the ATmega328P? Do I need any external components?
1
vote
0answers
21 views

AT42QT1070 sensor output issues in standalone mode

Also when I am trying to see the data read on pins in serial monitor, it is not reading as required. The code i am using is as follows: const int tuch_Pin0=18; const int tuch_Pin1=19; const int ...
1
vote
2answers
42 views

How to use 3 digital input pins on Arduino Uno for frequency inputs and total the output?

I am working on a Arduino tachometer that reads the RPM of a BLDC motor. The motor circuit does not use the hall sensors so I would like to use them for RPM sensors. I have already hooked up an Uno ...
1
vote
1answer
39 views

RF sniffer with Arduino

Hello programmers out in the world. I am doing a capstone project for an RF sniffer to capture RF signals from Key fobs within an OEM manufacturing plant. I want to be able to decode this RF signal to ...
1
vote
1answer
28 views

2 stepper cnc inaccurate

I'm building a simple cnc machine that just writes letters. It uses 2 steppers for x and y axis. Here is how it works generate letters in c# and convert them to list of lines send to arduino mov_xy ...
1
vote
1answer
38 views

Cannot receive IR codes after sending IR on same Arduino (I have irrecv.enableIRIn();)

I have two Arduinos with identical wiring, they will (hopefully) end up being laser guns for my younger cousins. When they both have a sketch which simply toggles lights when the correct IR code is ...
1
vote
0answers
46 views

I2C and SPI connection in the same-time [closed]

I want to make code between to devices , the communication between the I2C master to master , but in the sometime the one of the connect with other device SPI bus master to slave . how it work?
-1
votes
1answer
52 views

I am trying to up the frequency everytime button is press by 100 Hz, I am using the Input pull registor

The frequency should be increased by 100 Hz whenever an external push-button on UNO digital pin 5 is depressed and then released. I think I might missing something critical. #define LEDPIN 3 float ...
1
vote
0answers
34 views

How to stop my 16*2 lcd blink?

Here I wrote code for my weighting scale measurement. In which I added an on/off switch for my LCD display. But in defined delay time my LCD is a blink and I do not want it. I want my LCD switch on/...
1
vote
3answers
54 views

Memory for inputs?

When a button is pressed, the Arduino might be busy with something (like drawing the screen). When the Arduino has finally time to check the button input, the uses might have release it already. Is ...
1
vote
0answers
38 views

Vernier to Arduino not working

I want to connect this analog Vernier temperature probe to my Arduino with this British Telecom Connector (BTA). According to datasheet, when sensor is in the connector, the PIN 6 of the connector ...
0
votes
0answers
26 views

AT42QT1070 TOUCH SENSOR SENSITIVITY INCREASE

i AM USING AT2QT1070 TOUCH SENSOR IN STANDALONE MODE. HOW CAN I INCREASE THE SENSTIVITY OF THE CAPACITIVE TOUCH PNS. i NEED RANGE BEYOND 7MM?
1
vote
1answer
42 views

100 hz Square Wave of 50% duty cycle in digital pin 3 and verifying with pin 4

I am stuck on this for a while, I am trying to generate a 100 hz square wave with 50% duty cycle in pin 3 and trying to verify it with wire at pin 4; I am getting 64000 but not 100 in serial monitor. ...
1
vote
0answers
32 views

How to interrupt and direct my program where I want it to in the code by clicking a button?

I want to simulate christmas lights and the different modes of lighting it can produce by pressing a button. I tried to do this by having a button pressed which changes an int variable (1-3) which ...
1
vote
1answer
32 views

How to make car turn 90 degrees?

I have an elegoo car model and am trying to make it turn 90 degrees whenever it gets to a 90 degree turn. This model has line tracing and it works fine on curved surfaces but doesn't work so on 90 ...
1
vote
0answers
45 views

Arduino pull-up resistor not working

I made a circuit where when I press a button, a LED lights up using a pull-down resistor. But when I tried the same with a pull-up resistor instead, the LED remains off (whereas I expected it to be on ...
1
vote
1answer
38 views

Inventory/Rack Management

I am trying to make a project where each item in a rack has its fixed spot. When picked/misplaced from this spot a LED will glow indicating the item is missing from its place also time of pickup, item ...
1
vote
0answers
85 views

Programming custom Arduino Mega with Arduino Uno

I'm making a custom board with AtMega2560-16AU as MCU and CH340G as bootloader (schematic can be seen in the picture). I have printed the custom PCB and soldered everything in place now I want to ...

1
2 3 4 5
157