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
1
vote
1answer
105 views

How to use a USB host shield with different HID Joysticks

I bought a Sparkfun USB host shield a while ago and have been using it using my Logitech Extreme 3D Pro Joystick. There is some example code for that one which makes it nice and easy to work with. ...
0
votes
0answers
35 views

current reading is not a sine like a voltage wave

I am working on a power meter project with ZMPT101B and SCT013. I want to see the phase difference between voltage and current in the serial plotter but the results are like this? Why do you think the ...
0
votes
0answers
35 views

How to write analog signals to control throttle of the ship?

I am using teensy 2.0 as DAC. I am trying to write signals on rudder and throttle of the ship via relay. How can I write these analog signals? Should I specify voltage for every pin? Here is my code: ...
0
votes
1answer
43 views

Having trouble with sprintf function and string class

in my code, I was using string class to make an array to store my menu items String menu[2] = {{"Menu 1"}, {"Menu2"}}; How do I convert this into char arrays and how do I call ...
0
votes
0answers
27 views

Running Arduino Code without opening serial monitor [duplicate]

I have a GSM module connected to arduino. I wrote a code that sends a command to GSM module but the code starts executing only when I open Serial Monitor. Minimal Reproducable Code - #include <...
0
votes
0answers
12 views

how can i interface this coding with 4 rfid rc522 module? [duplicate]

#include <SPI.h> #include <Wire.h> #include <MFRC522.h> #include <LiquidCrystal_I2C.h> #define RST_PIN 9 #define SS_PIN 4 #define STATE_STARTUP 0 #define STATE_STARTING ...
0
votes
1answer
48 views

Using RX TX pin

Can i use pin RX TX on Arduino Uno as reguler pin ? . For input and output pin , because two digital pin on my board doesn’t work . Thank’s
1
vote
0answers
22 views

Trouble with basic communication between two NRF24L01 modules

Introduction I am trying to setup a radio communication using the NRF24L01 module because I want to use it to control a tank. The first thing I did when I got the modules was watching some basic ...
0
votes
1answer
51 views

Attiny85 microcontroller programming without arduino

I have decided to make a simple project so thinked about arduino but that seems very worthy so i decided to use attiny85 ic for my project,but i don't have arduino or avr to program it. Is there any ...
0
votes
1answer
23 views

Serial.print() not fully printing

println() function is being used to send AT commands to GSM module. sim800l.println("AT+CLTS=1"); delay(3000); sim800l.println("AT+COPS=2"); delay(3000); sim800l.println(&...
0
votes
0answers
34 views

4 RFID with Arduino Uno / add or remove card with master card /

i am new in coding for arduino. I need some help with the project i'm working on. my project is a object tracking by using the rfid rc522 for inventory system. so i need to have multi reader in this ...
-1
votes
1answer
40 views

Vibration pattern matching [closed]

I would like to generate vibration patterns using the SW-420 or something similar that is able to reproduce the same pattern on similar vibrations. So if a 10p coin was dropped on a table from 1m at a ...
0
votes
1answer
50 views

A sensor to recognize my pet near me [closed]

Need a specific sensor that will detect when a pet comes close in a range of distance. As it comes close a beep intimates that the pet has reached. What sensor will work here. Can it work with an ...
0
votes
1answer
59 views

How to supply more than 500mA while powered by USB

I'm about to build myself a new BrewPi and I have some Arduino power/USB questions. Something smiliar to a combination of these projects: https://imgur.com/a/Nval6 https://www.homebrewtalk.com/...
0
votes
1answer
42 views

How to send 2 data to processing from Arduino

I am new to Arduino and processing so sorry for any mistakes. I have a problem with sending multiple data to processing from Arduino. I can send 1 data easily ut I can't send more than 2 data can ...
-3
votes
0answers
66 views

LCD displaying gibberish when limiting a rotary encoder's range (EDITED)

Whenever the encoder is turned and the set variable reaches its limit(above 6 and below 0), LCD starts showing nonsense and cant recover back. This code is very crude but simulates the problem I'm ...
0
votes
0answers
37 views

problem controlling rgb led with one button

I'm trying to make a lamp which quality to change color by pressing a button, pressing once turns on red, pressing again turns on blue and so on, but I also want it to have a light effect in which it ...
0
votes
2answers
36 views

Come out of loop and execute Setup again

I want to end loop at a specific time and start setup again. Is this possible? (I can explain reason in case you require).
0
votes
1answer
31 views

Sine wave using arduino uno

I am an adruino hobbyist, i want to make sine wave using arduino uno, for that i using timer0 as interrupt, OCR0A set to 17 for 3.6khz interrupt(16000000/(100hz*36 interval)/256-1), If i am using only ...
0
votes
1answer
26 views

Writing and Reading data from RTC module EEPROM_Arduino

i have took below code from https://lastminuteengineers.com/ds1307-rtc-arduino-tutorial/. i am not understand what these codes are doing. please help me to understand. Wire.write((int)(eeaddress >&...
0
votes
1answer
32 views

ESP01 and Arduino - Serial port confusion

I'm trying to understand how to think about ESP01 devices and arduino connectivity I purchased one of the USB programmers from Ebay to program the ESP01 - this works nicely, I can see the ESP doing ...
0
votes
2answers
41 views

Send data before raising edge of a Clock

I'm trying to control a LED strip that has a custom protocol (developed above of I2C). But in my tests i was successful figuring out how it works : You set Clk to zero , you send a bit in the data ...
0
votes
0answers
18 views

CIPSEND Shows 404 error using aeduino + esp8266+01

I am trying to save data in the data base with the get method. my url works fine when used with browser but when tried with esp shows page not found expection. Arduino Code SoftwareSerial ESP8266(...
-1
votes
0answers
7 views

Problem with interfacing of 16 MG996R [duplicate]

I am using 16 MG996R servo motor with PCA9685 servo driver and Arduino Uno, but the motors are not working properly.It works well a Month ago but is not working now. The servo only twich a little when ...
0
votes
1answer
49 views

How many LED displays can be hooked to one Arduino board?

I am new to Arduino development. I need to connect multiple led displays(between 20 and 100), such as this one to an Arduino board. The led displays will be pretty far out from each other. How can ...
0
votes
1answer
29 views

SIM800L and DTH22

I am very new to arduino. I am build a model that will require SIM800L and DTH22. I want to know if I can power both from my arduino. DTH22 has a wide range of input voltage but I doubt of SIM800L. It ...
0
votes
0answers
12 views

Problem with setting up HC-08 bluetooth module

I recently bought a HC-08 Bluetooth module and use below code for test that: char val; int ledpin = 13; void setup() { pinMode(ledpin, OUTPUT); Serial.begin(9600); } void loop() { if( Serial....
0
votes
0answers
28 views

When trying to write multiple bytes to a serial port, all 0x00s are skipped

I am using a dynamixel XL320 servo, and am trying to control it using an Arduino Uno. I’m trying to send a simple packet that turns on an LED. I believe the correct format of this packet according to ...
-1
votes
1answer
22 views

Stopping a motor after a given time period [duplicate]

I have a code to turn on a LED when IR Proximity sensor having a object less than 6cm in front of it, and the LED goes down after it is removed. Now, I want the LED to run for 3 seconds only, even if ...
1
vote
1answer
26 views

Multiple Buttons to control the same led for different on off times

I am just learning the Arduino, it is a learning curve that's for sure. Using the onboard Led I want to use two buttons to make the Led blink for different times. I am not sure what is missing from ...
0
votes
2answers
72 views

How do I know if I need to use a resistor in a circuit?

I have been trying to find answers on Google to this question but cannot seem to find any answers that actually pertain to what I am wanting to know. I would consider myself a beginner in the area of ...
0
votes
0answers
25 views

Car freaks out on CANBUS shield connection

So, I'm trying to connect to my car's CAN-BUS (via the OBD2). I initially ordered a cheep shield then an even cheaper module to provide connection between my uno and the car. Using the module I was ...
0
votes
1answer
23 views

what command should i use to read and write through spi.tranfer command

#include<spi.h> byte val; // variabe for storing temp data #define PIN_SPI_SS (9) #define PIN_SPI_MOSI (10) #define PIN_SPI_MISO (11) #define PIN_SPI_SCK (12) void setup(); pinMode(...
0
votes
1answer
73 views

Stopping the program after 1 second

I am a Beginner in Arduino Programming. I am working on a project where I control A DC motor with IR sensor and arduino. Until here it is fine. But I want the Motor to stop after one second even ...
0
votes
0answers
23 views

ModbusMaster - Read 64 Bit integer

i'm using ModbusMaster library (Repo) to read from a device some registers. Many of them are float and i've no problem to read them using the following code: //for float conversation union { ...
0
votes
0answers
37 views

A library for interfacing TMS9918 with Arduino

I want to make a personal computer that includes using the ATMEGA8 acting as the CPU, and using an easy to interface DIP IC as video chip. I am considering to interface an Arduino with a TMS 9918 ...
-1
votes
1answer
27 views

Problem With interfacing of 16 Servo MG996R with Arduino Uno

I am using 16 MG996R servo motor with PCA9685 servo driver with Arduino Uno, but the motors are not working properly. What is the best power supply/battery for my project as it worked well earlier but ...
0
votes
0answers
6 views

getting interrupt from ignition circuit [migrated]

This transistor ignition circuit for a model petrol engine is built from a proprietary kit. I have made it up and it works. Now I want to take a signal from it as an external interrupt to an Uno ...
0
votes
2answers
44 views

RGB LEd and a push button in TinkerCAD

I'm working on TinkerCAD, I want to design and simulate a circuit in which there are following components. 1. 1 RGB LED 2. 1 Push button 3. 3 Photo-resistors. 4. 1 Arduino board. So the light should ...
0
votes
1answer
38 views

NRF24L01 +pa +lna modules do not communicate

I am building an rc airplane and I want the controller and the plane to communicate using 2 NRF24L01 +pa +lna modules. I am using an Arduino UNO and a Mega. I hooked them up corresponding to this ...
0
votes
1answer
37 views

Matrix and State Space Arduino Implementation

I wrote an Arduino Matrix class. Then I used this class to implement State Space on Arduino. During tests I stomped upon a problem. After starting the program it stops at some point. I have no idea ...
-3
votes
1answer
56 views

Controlling the color of an RGB LED using a single push buttton [closed]

I'm working on TinkerCAD, I want to design and simulate a circuit in which there are following components. 1. 1 RGB LED 2. 1 Push button 3. 3 Photo-resistors. 4. 1 Arduino board. So the light should ...
0
votes
0answers
34 views

LCD stays blank when it is on and all wiring seems correct

So I have to do this project for school and it involves using a lcd display on tinkercad. I followed the wiring on this tutorial here: https://www.arduino.cc/en/Tutorial/HelloWorld. When I turn it on, ...
0
votes
1answer
34 views

Why does my Arduino/Ledstrip combi not work?

simulate this circuit – Schematic created using CircuitLab I am using an Arduino Uno, and WS2813 led strip (60 leds). It seems like a default schematics (except I did use a 470 uF (...
0
votes
0answers
50 views

i build quadcopter using USB HOST SHIELD + NRF24L01 but the data transmit is wrong

I am building mini Arduino quadcopter project. I am using USB host shield for joystick support and nrf24l01 to transmit the data. Unfortunately, I got wrong data transmitted at the receiver and tried ...
0
votes
1answer
26 views

Is it possible to use Pi's output signal as Arduino's input signal?

I have a relay attached to an Arduino Uno which I want to control using my raspberry pi 3b. And yes I know it can be done by attaching the relay directly to Pi but I cannot do so. Don't ask me why. ...
0
votes
0answers
20 views

Output of mlx90614 to mcufriend tft/lcd, not getting displayed

Newbie here !! Im trying to display the output of my MLX90614 sensor on mcufriend tft display (with arduino UNO). But unable to do so. I can only see the TFT being lit to white color, text -> "Target" ...
0
votes
1answer
26 views

3,6V DC motor spinning with L298N and Arduino

I'm trying to control a re used DC motor from a drill (3,6V) with a L298N and a Arduino. It's powered with a 5V - 60A power supply. I tried to follow this step by step tutorial (https://www.youtube....
2
votes
1answer
47 views

Arduino UARTS Auto addressing slaves

i'm using this serial topology to connect my Act ATmega328p (Arduino) slaves together to a master ESP32. They are in total 10 ATmega328p slaves and one master: With this type of wiring i'm sure that ...
0
votes
2answers
75 views

the use of the Arduino's EEPROM

I want to know the purpose of using the EEPROM because I can't get it, I mean I know that it can store values for a long time, but I just can't get the goal here #include<EEPROM.h> void setup() ...