Skip to main content

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
91 views

Communication with scale via rs232

I need help with an Arduino project. I want to read values from a TCS150 scale using the serial port. The hardware I have is an UNO R3 board and a MAX3232 level converter. I have connected: MAX3232 ...
Konrad Morawiec's user avatar
2 votes
0 answers
511 views

Using ModbusRTU.h, what would cause holding registers all read 0?

I'm working with a 32-Input Modbus RTU module using RS485. I'm trying to read/poll the inputs to check for ON(1) states. I have tested this module with Arduino UNO, Radzio! Modbus Master simulator, ...
Ashton's user avatar
  • 159
0 votes
1 answer
489 views

I am attempting to control two stepper motors by using serial input. My code works, however I have to press the new directional command multiple times

I am using two 28BYJ-48 stepper motors with two motor drivers that they come with. (I don't know the name of them.) Here is my code: /* * Code to control two stepper motors simultaneously using the ...
Gabriel Adams's user avatar
2 votes
0 answers
423 views

Sending an image captured using ov7670 using arduino and serially transmit it to python

I am working on using an ov7670 camera module with arduino uno,capturing the image frame wise and transmitting the image serially line by line of each frame to python for image processing, however i ...
Gunjan's user avatar
  • 29
-1 votes
3 answers
939 views

Correctly connecting a four-pin tilt sensor to a breadboard before going live

I'm working on Arduino Kit book's Project 8: the digital hourglass. I've got the picture and the circuit diagram below. My question is a fundamental one, and I really don't know how others figured it ...
AndrewGreen's user avatar
3 votes
1 answer
243 views

The gateway is not working in Arduino EthernetENC

I am using ENC28J60 and EthernetENC library to connect an Arduino UNO with ATmega328 to the network. Everything works fine within the local network, but outside of it, I cannot ping the device. What ...
ArgusLibovski's user avatar
1 vote
1 answer
121 views

Checking a thing about interrupts

If I disable interrupts (for example noInterrupts or cli) and enable them (interrupts or sei for example) later, would interrupts which would have executed in the window in between fire by the ...
markoj's user avatar
  • 43
1 vote
0 answers
48 views

Connecting HM-10 and relay to Arduino Uno

I have an 8 channel relay, an Arduino Uno, and this HM-10 bluetooth module: https://www.amazon.com/dp/B06WGZB2N4 The Goal Send a number (1-8) from my Android phone via bluetooth to turn a relay on. ...
badhorsebadhorse's user avatar
3 votes
2 answers
498 views

Where does this sketch have Undefined Behavior?

Simple sketch and simple question: where does this sketch have undefined behavior? Note: I don't need a solution to fix the code. I already have code that works. I really need to understand where my ...
Thomas Weller's user avatar
1 vote
0 answers
56 views

How to change between loops? IR Remote + led strip

#include <IRremote.h> #include <Adafruit_NeoPixel.h> #define LED_PIN 7 // define the LED strip data pin #define LED_COUNT 150 // define the number of LEDs in the strip Adafruit_NeoPixel ...
Martin's user avatar
  • 11
2 votes
0 answers
128 views

TFT Screen with Arduino UNO does not display as expected

I have a 3.5" TFT LCD communicating in parallel connected to Arduino UNO. I expect it draws a white circle on a black background but all it does is to show a white screen. How to fix this? main.c ...
ar2015's user avatar
  • 173
1 vote
0 answers
82 views

Automatic pet feeder with a simple menu type keypad

this is the sample code where the user enters A to set the number of times the pet needs to be fed. When I click A on the keypad it asks for the user to set the number. However, the keypad still ...
michael filbert's user avatar
1 vote
1 answer
275 views

Calibration of pH sensor

I am working with pH sensor (https://wiki.seeedstudio.com/Grove-PH-Sensor-kit/ ) and arduino. The board provided with sensor is not having any potentiometer to set the voltage value when dipped in ...
Jashanjot Kaur's user avatar
2 votes
0 answers
2k views

How do I interface my ESP32 board with my 3.5" TFT Screen

I've bought an ESP32 board from here and a 3.5" TFT Screen from here. The ESP32 board has an UNO type layout so I thought it would work with the screen which is designed to plug in and play with ...
hydroxy's user avatar
  • 21
2 votes
0 answers
142 views

ESP & Servo not communicating well

I have a mystery I was unable to solve and would greatly appreciate it if anyone could shed some light on this. I have a servo DSS-M15S 270 which I managed to run perfectly fine with Arduino Uno (code ...
Shay Lavi's user avatar
-2 votes
1 answer
169 views

I2C_Anything ++

a request for information has been formulated, how to say it? in Ascii: i2C dialog: Tx -----> Rx ----> PCF8574 a drawing https://nsm09.casimages.com/img/2023/02/28/23022802163423870818122937.jpg ...
JeeLet's user avatar
  • 1
1 vote
0 answers
137 views

Stepper motor not working with A4988 driver

I have been trying to run stepper motor via Arduino Uno and A4988 motor driver via this tutorial: https://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-...
user89175's user avatar
0 votes
1 answer
78 views

ATTiny88 missing pulses - maybe

I have been given to understand the ATTiny88 is very similar to the Arduino Uno / ATMega328 MCU. There does not seem to be a tag for the ATTiny88, so that is why I chose the tags I did. I do not ...
Leslie Rhorer's user avatar
-1 votes
1 answer
87 views

strange behaviour with a single 7seg display

I'd like to display a sentence character by character on a single seven-segment display. What happens is that if my sentence is longer than 48 characters the central segment doesn't light up. It works ...
Fab_x's user avatar
  • 1
-1 votes
2 answers
80 views

why the p-mos is acting as a constant switch when the source is connect to any port in the circuit iam not able find the solution ?i

if my circuit has mistake please refer me the proper image. #define pwm 6 void setup() { // initialize serial communication at 9600 bits per second: pinMode(6,OUTPUT); Serial.begin(9600); } // ...
datta sahu's user avatar
-2 votes
1 answer
291 views

How to use arduino to run .exe file in a windows computer

Is there a way to run .exe file on a windows computer that connected to arduino? (I want to create some sort of stream deck, but it will be used for running Google Chrome and other .exe file on a ...
Willl's user avatar
  • 1
2 votes
1 answer
256 views

How does the compiler/assembler work wrt bootloader?

I realized that on the atmega boards the bootloader is programmed into the chip. I'm curious, when compiling a sketch how does the compiler/assembler differ from compiling a standard C program for a ...
FourierFlux's user avatar
1 vote
1 answer
405 views

AD7768-1 library " Arduino "

I am working on a project and I need an AD7768-1 library to make this analog-digital-converter talk to my Arduino using SPI. " The AD7768-1" doesn't exist in Arduino's library. Thanks in ...
Jaafar AIT M'BAREK's user avatar
-3 votes
1 answer
186 views

Using internal voltage reference for sensor

i am using 3.7~4.2V lithium battery. I am using internal voltage reference to read constant battery voltage as we know that the battery voltage level depletes overtime. The problem is that my sensor (...
electro_nooobbbb's user avatar
3 votes
1 answer
508 views

Why a Arduino UNO R3 board can use in Windows 10 but can't be used in My Macbook Air(M1)?

In Windows 10, everything is well. But when I use it in my macbook, it even can't recognize the port. This is official description about driver.
luyao's user avatar
  • 31
-3 votes
1 answer
211 views

Reading constant battery voltage and using the obtained value in sensor formula

there i am working on a project in which my system is connected to 3.7v~4.2V lithium battery, I have to read constant battery voltage irrespective of the current battery voltage and to do that I am ...
electro_nooobbbb's user avatar
-1 votes
1 answer
195 views

Why can't my four batteries (6V) can't power this circuit while usb 5v from arduino can?

I have this circuit And I want it to power all the led rgb (100 in total), I want to make a independent portable circuit, so I don't have to use the usb power. The thing is when I use this circuit it ...
RodParedes's user avatar
1 vote
0 answers
47 views

Things stop working if I use Serial.println(tt) and when I use display.drawPixel(i - ii, 64 - Harray[ii], SSD1306_WHITE);

Things stop working if I use line 131 Serial.println(tt); and when I use line 145 display.drawPixel(i - ii, 64 - Harray[ii], SSD1306_WHITE); Also Serial Monitor gives very strange reading. Serial ...
sasha kirilova's user avatar
3 votes
1 answer
3k views

Button Matrix / Wiring Schematics

I am just beginning my journey into the Arduino world - plenty of development experience, but basically nothing with electronics outside of building computers. The question I have involves wiring ...
Scott Salyer's user avatar
1 vote
1 answer
404 views

adc arduino using reference voltage to read stable/constant lithium battery voltage

I want to read my lithium battery voltage. I WANT TO CREATE A FUNCTION TO READ MY 3.7~4.2V,1200mAH BATTERY VOLTAGE THROUGH A MICROCONTROLLER (ARDUINO OR ATTINY44). THEN I WANT TO CALL THE CREATED ...
electro_nooobbbb's user avatar
-2 votes
1 answer
122 views

How can I connect 2 Arduinos using ESP8266 transiver: ESP01

I have: 2 arduinos UNO, 2 ESP01 transivers. But if that's not enough, I'm ready to buy something else I need to use one of Arduinos as a wifi hot spot, and the second as a modem. They should just be ...
smkzya's user avatar
  • 3
1 vote
1 answer
1k views

an lcd with I2C is not recognized by esp32

I have a NodeMCU esp32-s board and I'm trying to connect My 16x2 lcd with PCF8574T I2C bus to the esp32 , the problem is that the lcd doesn't show anything and the WireScan sketch can't recognize the ...
kamal MKA's user avatar
-1 votes
1 answer
142 views

Can the Arduino Uno use a negative supply voltage (0V & -5V)

I acquired a bread-making machine. See control board image. I want to use the machine for other purposes and control the buttons, paddle, heater & 7-segment display with an Uno. As it stands, the ...
Mick's user avatar
  • 9
-1 votes
1 answer
149 views

RGB LED randomized colors and LDR fading at the same time

Im trying too make an RGB LED that keeps changing color's randomly, and makes the brightness fade at the same time with an LDR, yet I keep getting an error that says too many arguments to functions. ...
Sudras Elagor's user avatar
1 vote
0 answers
115 views

Why won't IP mode change to 1 in ESP01 using the AT commands?

I was trying to send some data to a webpage using an Arduino Uno R3 connected to an ESP01. I simply uploaded the BareMinimum and started sending AT commands through the Serial Monitor. It worked fine ...
yahskA's user avatar
  • 11
1 vote
1 answer
208 views

What is the raw value & scale value functionality of analog read() of ESP32 ? (Provided for UNO for reference)

What is the difference between ESP32 Dev kit & Uno for analogread() Function? As Uno -0 to 1023 As Esp 32 Dev Kit -0 to 4095 So what will be the raw val & scale val ? For UNO - int Rawval = ...
Rocky's user avatar
  • 11
1 vote
0 answers
32 views

Megaboard Problems about pySerial Communication from Python to Arduino

I asked same question on another forum, but i need more opinions and advices. I wrote a simple Python code and Arduino code. In my code, the Excel matrix data is loaded into Python, then converted ...
wk K's user avatar
  • 11
1 vote
1 answer
69 views

Need help figuring out how to organise a system to run a stepper motor at low speed without Steps-skipping

TL;DR : How to prevent step-skipping with a NEMA gearbox motor at low speed. I am in the process of creating a system in which I want an object to turn on a plate and to show a letter depending on the ...
Guillaume_slize's user avatar
-2 votes
2 answers
380 views

Error coming from specified code

Error Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno" AnalogInOutSerial:8:56: error: no matching function for call to 'PID::PID(int*, int*, double*, double&, double&, double&,...
Rocky's user avatar
  • 11
-2 votes
1 answer
233 views

Arduino Nano R3 & Deek-Robot datalogging shield

Whilst I am much more at home programming PIC ISR's in assembler, I am building a data logger using a DS1307 to interrupt every second to write data to a USB SD card. There does not appear to be a ...
Kevan Wells's user avatar
0 votes
1 answer
238 views

DS3231 with Arduino Nano for Timing precision

I am in need to synchronize two separate circuit boards working with Arduino nano. The need is to activate one relay using Arduino-1 after 45 min and another relay using Arduino-2 after 45.36 seconds. ...
Lawliet's user avatar
  • 183
3 votes
1 answer
314 views

Direct port manipulation takes 300 nanoseconds to execute for some reason

I have this code #include <Arduino.h> void setup() { DDRD = B00001000; } void delayNanoSeconds(int time){ int ans = (float)time / 62.5; for(int i = 0; i < ans; i++){ ...
Abdrlrahman's user avatar
1 vote
0 answers
80 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
1k 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
612 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
913 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
99 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
109 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
138 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
-1 votes
1 answer
183 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

1
3 4
5
6 7
163