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

Unable to use RF M4 Receiver with servo motor

I am trying to control a servo motor with the following code: #include <Servo.h> Servo servo; int const inputPin = 3; void setup() { Serial.begin(9600); servo.attach(9); pinMode(...
A P's user avatar
  • 11
1 vote
1 answer
542 views

Wire.write invalid conversion from ‘char*’ to ‘const uint8_t*

I have written this code: char message[4]; memcpy(message, &delta, 4); Wire.write(message, 4); When I try to compile I get this warning: warning: invalid conversion from ‘char*’ to ‘const ...
user88434's user avatar
0 votes
1 answer
363 views

Arduino nano timing precision

How precisely can an Arduino nano be timed? The project I am working on needs two Arduino nano to work synchronously. Arduino one have to activate a relay after 2700 sec and Arduino two have to ...
Lawliet's user avatar
  • 183
0 votes
2 answers
562 views

SoftwareSerial will not read all of the printed string when calling readString()

I have an Arduino UNO and an ESP32 that need to communicate to each other using SoftwareSerial. The problem I am coming across is that when I call readString and print it out using Serial, it will not ...
Primitive's user avatar
0 votes
1 answer
82 views

Making library for arduino

I'm learning library making on arduino , I want to make a library that works with arrays a user sets, e.g: User sets array of int, when a certain function is been called the library will check if ...
Joseph Afodu's user avatar
-2 votes
1 answer
93 views

Arduino code giving error while compiling [closed]

I am a beginner, and I'm trying to make code to control a servo using two ultrasonic sensors. I've tried to make the code, but when I tried to compile it using my simulation app, it gives this error: ...
Joseph Afodu's user avatar
2 votes
1 answer
92 views

Curious Collision between OneWire and RadioHead

The code below runs on an Arduino Pro Mini (8MHz 328p) sending temperature readings using an inexpensive ASK transmitter. I use OneWire to read the DS18B20s, and RadioHead to manage the radio. The ...
Eric Nelson's user avatar
0 votes
0 answers
57 views

SPI - CS Intermittently Goes High on Arduino UNO

This question is similar to SPI - Apparently Random pulses on CS/SS line in that I have a single SPI peripheral (a Microchip 23LC512 Serial SRAM) that an Arduino UNO is communicating to. Everything is ...
Joe's user avatar
  • 101
0 votes
0 answers
68 views

I need help with serial communication between Arduino Uno and NodeMCU [closed]

I want to transfer analog readings i.e. variable values from a NodeMCU to an Arduino Uno so that on the Arduino side I can check those values using an if condition and make a buzzer sound. Please help ...
Tanishq C's user avatar
-1 votes
1 answer
135 views

How to read analog sensor data with different timers in arduino

I have three analog sensors like voltage, temperature and pressure. I need to measure the voltage and temperature every 10 ms and I need to measure the pressure alone every 30 ms by using the timers ...
Pritha's user avatar
  • 1
3 votes
1 answer
116 views

Detecting an approximate angle/location of a light source using phototransistors

Note: [I am approximately two weeks into learning Arduino and hence have little experience with utilizing Phototransistors.] My plan revolves around placing four identical Phototransisors which are ...
Alexander Watkins's user avatar
1 vote
1 answer
160 views

DHT11 temperature and humidity sensor Code

I’ve got a question about this code I’ve attached please- would it be correct to read it like this: After defining the variable temperature and humidity and assigning measurement_timestamp to millis(),...
Tom's user avatar
  • 13
0 votes
2 answers
344 views

How to tri-state output circuit

I need a circuit where an Arduino MCU can set an output to 3 different states. HIGH (12V) LOW (GND) N/A (completely disconnected) Using transistors seems to be the correct way but I am too much of a ...
user2965339's user avatar
2 votes
1 answer
70 views

Ramping servo motor taking longer than calculated

I'm learning how to code a "BOE Shield bot" with a partner at my university (first year). To clarify for those that do not know: a BOE Shield bot is a small robot equipped with 2 servo ...
ShootinLemons's user avatar
-1 votes
1 answer
163 views

4x3 keypad not providing any output and the output it does provide is incorrect

I am trying to figure out how to use a 4x3 keypad and just want to receive the key numbers I select on the serial monitor. The problem I am getting is that some of the keys I type don't give me any ...
Campbell White's user avatar
2 votes
2 answers
70 views

Can a three wire Electrical conductivity sensor (Sensorex CS 150) be used directly with arduino?

I am having an electrical conductivity sensor (Sensorex CS150 with three tinned wires Red, Black and white https://sensorex.com/product/sensorex-cs150-12-mm-graphite-contacting-conductivity-sensor/ ). ...
Jashanjot Kaur's user avatar
-1 votes
1 answer
220 views

How do I stop my servo from repeating the loop and perform the rest of the functions?

The project has a makeshift meter (via a half circle cutout and a servo motor operated lever). On program start (button 2), the lever will move to the left hand side at the 9 o'clock position. Once in ...
user87900's user avatar
1 vote
1 answer
912 views

i need help on how to use busy pin in df player to arduino

i need help on how to use busy pin in df player to arduino.... while playing one sound or df player is busy, i don't want to trigger df player by ultrasound sensors to play another song. here is my ...
Saga's user avatar
  • 11
1 vote
0 answers
219 views

READ 433mhz DEVICES

I have an issue with 433mhz reading. I have two cheap transmitter and receiver boards, the most known ones : I followed several tutorials, and I'm using the rc switch library. I'm trying to read the ...
BruceWawe's user avatar
1 vote
1 answer
209 views

Run encoder code simultaneously with other code in Arduino

volatile unsigned int temp, counter = 0; int county=0; void setup() { Serial.begin(9600); pinMode(2, INPUT_PULLUP); pinMode(3, INPUT_PULLUP); attachInterrupt(0, ai0, RISING); ...
Maximus Su's user avatar
1 vote
1 answer
410 views

Issue communicating with ESP32 (WT32-S1) with my USB FTDI (hw-417-v1.2)

Basically im trying to communicate bewtween my ESP32 (WT32-S1) and my USB FTDI (hw-417-v1.2) when I run it in the Arduino IDE I get the error "Failed to connect to ESP32: Serial data stream ...
PrinceSalmon's user avatar
-1 votes
1 answer
133 views

LEDs controlled by PHONE on ESP32

I am having doubts with a project I'm making. My project involves a sets of LEDs stripes, among which some are controlled from a smartphone, and some automated. The LED strips are connected to an ...
BruceWawe's user avatar
-1 votes
1 answer
125 views

Does ADXL 345 accelerometer not wirk with Arduino Uno without soldering?

I followed the Adafruit tutorials to wire the ADXL 345 with Ardiuno Uno, but it is not able to detect the sensor. It did not mention that I need to solder the ADXL 345. Is soldering necessary?
Ardiunofan's user avatar
1 vote
2 answers
108 views

Stoplight Simulator - White LED not turning on with button press [closed]

I am working on a relatively simple stoplight simulator that uses four LEDs - red, green, yellow, and white - in addition to a button. The 3 colored stoplight LEDs cycle as a real stoplight would. If ...
Weston K.'s user avatar
1 vote
2 answers
149 views

PWM with a TRANSISTOR on flexible LED filament

I would like to create a custom lighting, with PWM capability, powered from battery. I would like to use flexible led filaments, and since those consumes more than 40mA, I can't use them directly on a ...
BruceWawe's user avatar
1 vote
1 answer
72 views

Fading out a led with reed switch loop

I was hoping to get some help on the fading led which I am working on. For my project I need to have a led, which when it is placed next to a magnet, continuously shines, but as soon as it is taken ...
Igne's user avatar
  • 13
0 votes
2 answers
239 views

How do I put a LiquidCrystal_I2C class in a Lcd class?

I want to make my main code cleaner so I was thinking of making a Lcd class which I can use every time I need to print on lcd. So my main code every time I try to print text I need to call : lcd.clear(...
LatinoTech's user avatar
2 votes
1 answer
142 views

Multiple unique I2C devices interfere

I'm trying to make a fairly simple program that interfaces with the Adafruit TSL2591 light sensor as well as a MAX30102 pulse oximeter. They both use I2C for communication. I'm using the recommended ...
Jackson V's user avatar
0 votes
1 answer
81 views

power 12v solenoid from DC jack of Arduino Uno

I was wondering if it is possible to power up a 12V solenoid valve from the DC jack of the Arduino Uno, provided that I'm powering the Arduino from the same jack:
Fabio Magarelli's user avatar
1 vote
0 answers
224 views

Getting “Open the GPS power failure” on module SIM808

I tried to get the gps coordinates with this program: #include <DFRobot_sim808.h> #include <SoftwareSerial.h> #define PIN_TX 8 #define PIN_RX 7 SoftwareSerial mySerial(PIN_RX,PIN_TX)...
Hans Ricardo Davila Acuña's user avatar
-1 votes
1 answer
208 views

How many stepper motors can you run on one Arduino Uno? Ideas on how to run 9?

I am in middle school and new to Arduino. I just learned to set up and code a stepper motor on my Arduino Uno from watching YouTube videos. I want to set up 9 stepper motors to all run at the same ...
JDRNeedsHelp's user avatar
-1 votes
3 answers
123 views

Is there any way to efficiently code reading of four sensors and sending a serial output once it does detect a reading?

I am actually wondering if there's a way to efficiently do this block of code. There are two things in my specifications and these are: Four IR Sensors that detects blockage. Basically just to ...
fireblazer10's user avatar
0 votes
1 answer
106 views

How to control PWM and digital pins at the same time over ethernet in arduino

I am using Controllino Maxi. It has an Arduino Uno inside it. I am trying to control the PWM pin D0 and digital pin R0 via python code. Below is the code I have upload on arduino: Arduino Code: #...
S Andrew's user avatar
  • 183
-1 votes
1 answer
106 views

Continous Rotation Servo not changing directions

I have coded a robot to be controlled by a ps3 Controller. I am using continous rotation servos but unfortunately I can not figure out how to get them to change direction. My input for my if ...
Brax's user avatar
  • 1
2 votes
1 answer
138 views

The code to turn off the RGB LED by pressing the 4,5,6 switches in sequence doesn't work

I'm making photoresister alarm. When distance under 5cm over notes[] 5 times, piezo speaker off. And I want to turn off the led rgb by pressing the 4, 5, 6 switches in sequence. The code to turn off ...
hello's user avatar
  • 21
1 vote
1 answer
417 views

How to read and parse UART data from human presence radar sensor

I'm working on a project, and I purchased a 24 GHz "Human existence/presence" mm Wave sensor from micradar, the R24DVD1. The output of the module is serial data which varies in length and is ...
obatala's user avatar
  • 11
-2 votes
1 answer
184 views

How can I send Arduino sensors data to java application?

my final year project is to do an Arduino watch that has heart rate and body temperature sensors and also a location tracking module. I need to send all the watch data to my java app but I don't how ...
user87358's user avatar
1 vote
0 answers
168 views

Arduino Uno Stuck at uploading

I wrote a basic blink code and tried to run it on the auduino IDE. Compilation was sucessfull but the code stucks at uploaing. I turned on the verbose output while uploading and this is what I have ...
Stelk's user avatar
  • 11
0 votes
1 answer
127 views

Balancing pendulum using PID

Dear all, referring to the video at here on how to make a PID balancing pendulum as shown in the picture and the author also provided the arduino code in the video description. May I ask whether this ...
jessica smith's user avatar
-1 votes
1 answer
188 views

How to write arduino code in a c/c++ script

I'm pretty new to arduino. But I have some knowledge about programming in c/c++. I know that arduino is written in c. But it can't be used as normal c/c++ code. for example , instead of including some ...
Alien5516788's user avatar
0 votes
2 answers
1k views

The same button with one click and double click [closed]

i hope to get some help with my code. I am trying to distinguish between a single press and a quick double press of the button with debouncing. I am making some silly mistake in my code and i can't ...
Carlos Costa's user avatar
0 votes
2 answers
92 views

How to reduce codes numbers

I am new in Arduino projects, i made a digital counter that counts from 00 to 99. Here is my code below void setup() { pinMode(0,OUTPUT); pinMode(1,OUTPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); ...
Joseph Afodu's user avatar
-1 votes
1 answer
118 views

I2C HMC5983 communication issue

I have a really weird problem, when I run the exmple wire (I2C) scanner from Arduino, I get: I2C Scanner Scanning... I2C device found at address 0x1E ! done However when I try directly to the 0x1E I ...
Ana Houa's user avatar
0 votes
1 answer
70 views

Arduino not recognizing external microcontroller

I've been trying to follow the official Arduino instructions on how to program and power an external breadboard, and I've gotten a pack of ATmega328p's that may or may not have been preloaded with the ...
Daneolog's user avatar
  • 137
1 vote
2 answers
1k views

Changing Frequency of PWM Pin on Arduino Uno

I am trying to change the frequency of the PWM output from an Arduino Uno R3 (Been using Pin 9) to 200 Hz with a duty cycle of 20%. This is for an ESC that is connected to a 12V motor, and I know the ...
wroex24's user avatar
  • 13
0 votes
1 answer
224 views

Connect OLED SSD1306 to Elegoo Uno R3

I'm trying to connect the OLED SSD1306 screen to my Elegoo Uno R3 and display something using Arduino IDE. However, nothing shows up on the screen for some reason. I have connected every pin in the ...
Arnau's user avatar
  • 113
0 votes
1 answer
83 views

Problem with character concatenation algorithm in matrix led

good afternoon, I am making a 7x10 led matrix in which I use a CD4017 to handle the 7 rows and 2 cascaded shift registers to handle the 10 columns. I first tried a programming to turn on my entire led ...
Lucio Mazzini's user avatar
0 votes
0 answers
374 views

How to program Attiny12 with Arduino?

I bought a bunch of Attiny12's from Digikey without checking if I can even program them with an Arduino. I've looked around a bunch, and I've only ever found ways to program Attiny13 and Attiny10. ...
explodingfilms101's user avatar
0 votes
2 answers
110 views

Bluetooth Arduino Data Type Error

In my code I want to send some float values from my phone to the Arduino's Bluetooth which I will then split using the substring function. it will then print that split value to the serial monitor. I ...
CodeStuff's user avatar
0 votes
1 answer
708 views

No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)

This was supposed to be the code for automatic pet feeder Got it from here1 The problem is that I always got a "No matching function for call to'DS3231 (const uint8_t &, const uint8_t &)&...
AEZAKMI 12's user avatar

1
3 4
5
6 7
162