Questions tagged [arduino-uno]
The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.
8,148 questions
1
vote
0
answers
92
views
GPS module NEO M8M not responding with Atmega 328P
I designed PCb for relay Switching using gps signal for that i am using atmaga 328P-AU and Neo 6M but after connecting gps module its not showing long, lat. i also checked power supply in module pin ...
0
votes
2
answers
57
views
I want to have separate Keypad passcodes to light up an RGB and run a DC Motor in one code. 6113 for RGB and 4613 for the DC Motor
#include <Keypad.h>
const int ROW_NUM = 4; //four rows
const int COLUMN_NUM = 3; //three columns
const int PIN_RED = 2;
const int PIN_GREEN = 3;
const int PIN_BLUE = 4;
const int MOTOR_PIN1 = ...
0
votes
0
answers
187
views
Arduino RS485 do I need MAX485?
I'm trying to connect sesnor that use RS485 (I'm almost sure that's modbus). The sensor has RX/TX and +/- wires. Do I still need a component between the RX/TX pin from the Arduino UNO and the sensor ...
1
vote
1
answer
71
views
How can I observe the "voltage dips" the starter kit talks about in Project 5?
Project 5 of the Arduino Starter Kit book (page 63) involves wiring up a potentiometer to control a servomotor (see diagram). The book also recommends wiring up decoupling capacitors as shown in the ...
1
vote
1
answer
98
views
Program work when used Delay() but same program doesn't work with millis()
I'm running a dc motor using esp32 and mosfet by taking readings of IR.
Program works fine when used delay() but same program doesn't work when uploaded using millis().
//This uses fixed delay()
// ...
1
vote
1
answer
105
views
Why Did I Have To Program Duemilanove Bootloader?
As a volunteer for Public Invention, I have developed an Atmega328 based design in which I thought I was largely duplicating the Arduino UNO.
Unlike the UNO, I did choose a CH340 USB to UART chip as ...
1
vote
0
answers
262
views
OEM Arduino UNO not seen by COM port
Arduino UNO R3
My error code:
avrdude: ser_open(): can't set com-state for "\.\COM3"
An error occurred while uploading the sketch
This has been mentioned several times before here in the ...
0
votes
1
answer
394
views
Why NEC IR remote control decoder does not work
I need to recognize a signal from an IR remote, not to use a library for working with IR remotes/receivers. How can when the button is clicked to display its name. I have PIC12F615 microcontroller ...
-1
votes
1
answer
102
views
It is required to turn on the LED if the distance to the object is less than or equal to 200 centimeters. Find the error in the code
int trigPin = 10;
const int echoPin = 8;
int led = 7;
const int distance = 200;
void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(led, OUTPUT);
}
void loop()
{
...
-3
votes
1
answer
278
views
SIM7600 MQTT CONNECTION TO shiftr.io broker
I am trying to use SIM7600 MQTT command to publish and subscribe to shiftr.io broker.
I have not been able to get pass stage of connecting to broker.
I use this
AT+CMQTTCONNECT=0,"tcp://instance....
-1
votes
1
answer
286
views
Why is my Arduino is getting power from the 5V pin?
I have an Arduino that is controlling two 6V DC motors through a L298N motor driver. The motor driver is being powered (from its Vin pin) by a 7.4V external source.
I then have the 5V pin from the ...
1
vote
1
answer
137
views
Transmitting voice via VLC
The project I'm working on: Short-Range Coded Visible Light Communication System.
Visible Light Communication (VLC) systems use light to transfer data between transmitter and receiver over short-range ...
0
votes
0
answers
73
views
channels on logic level shifter outputs high
so I have a logic level shifter which is TXS0108E ,I use it to shift the eps32 ouput volatge to 5v to be used with motor driver ,when I test it with multimeter , all the channels on the B side outputs ...
1
vote
1
answer
1k
views
Problem with using PubSubClient, the "callback" function doesn't seem to work correctly
I have a program that communicate between a esp8266 and a atmega328 using Serial, the esp8266 will connect to a MQTT server running on local network, and publish/subscribe to some topics. In the ...
1
vote
2
answers
255
views
What's Memory Allocation technique in Arduino
I am currently working on an assignment for my embedded systems course, and my professor has asked us to determine the memory allocation technique employed in Arduino. Specifically, I need to identify ...
2
votes
1
answer
304
views
How do I make the Arduino print on my Mac's Arduino IDE through Bluetooth?
This is a basic question, but I really have tried my best to find a solution on the internet to no avail.
I have a fairly normal setup. HC05 module connected to an Arduino. The HC05 is also connected ...
1
vote
0
answers
201
views
LIS3DH not working with arduino
I am new to LIS3DH and tried to interface it with Arduino Uno. I have made the circuit as follows-
LIS3DH : Arduino Uno
SCL : SCL (GPIO18)
SDA : SDA (GPIO19)
3.3v : 3....
0
votes
1
answer
895
views
Incorrect IP address when using Ethernet library with Arduino Uno and WizNet 5500 ethernet module
I'm trying to get an ethernet module with the W5500 chipset to connect to my network on an Arduino Uno, but whatever I do, I always get an incorrect IP address.
The module is connected as default SPI, ...
0
votes
1
answer
274
views
The Arduino UNO Pin 3V3 have OUTPUT 5V (measured with meter)
I just noticed that my original Arduino UNO on pin 3V3 have 4.98V output. That's odds. That pins should have 3.3V. So I measured the Vout on the voltage regulator LP2985-33DBVR where that pins is ...
1
vote
0
answers
76
views
Code not displaying/working DFRobot SIM808 shield data on Adafruit 1.69" ST7789 rounded screen
I have been having trouble with the code below not display and possibly not working and or looping. Before making changes to my code I had a problem where the Serial monitor would print up to "...
1
vote
0
answers
212
views
Trying to use an Arduino Uno to control two slaves with one master but its not working
I am trying to use following code but its not working. Need a help in this regard.
#include <SimpleModbusMaster.h>
#define baudrate 115200
#define timeout 2000
#define polling 500
#define ...
1
vote
0
answers
149
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 ...
0
votes
1
answer
676
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 ...
0
votes
3
answers
2k
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 ...
1
vote
1
answer
198
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 ...