All Questions

0
votes
1answer
93 views

Nan values in Egg Incubator

I've recently built my Arduino Incubator, which consists of a DHT22 sensor, an LCD Keypad Shield, some fans, resistors, e.t.c. I uploaded the sketch, and everything seemed fine. However, when I try ...
0
votes
1answer
21 views

ESP8266 SoftwareSerial not receiving any character

I want to use a ESP8266 (ESP12) to receive data from a counter at 9600 baud via SotwareSerial. But my program does not receive any data. I broke it down to the code i attach here. I tried it using ...
0
votes
1answer
21 views

Help to delimit and read specific contents of incoming HTTP string

I am sending strings to an Esp8266 via web browser. The below code returns the following in serial monitor if I send in browser: Send from browser to esp8266 - http://192.168.1.220/s1s2s3s4s5d1 ...
0
votes
0answers
42 views

I can't upload my program because of this error [duplicate]

This is the error I copied : **Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" Sketch uses 2304 bytes (7%) of program storage space. Maximum is 32256 bytes. Global variables use 192 bytes (...
0
votes
1answer
12 views

Management issues through Blynk

I wrote a sketch for controlling the stepper motor under the controls of the Blynk application, the sketch was compiled but there was a problem in that no control was taking place. Receipts and ...
0
votes
1answer
44 views

to measure the time between the ON signal and OFF signal

int pin_state = LOW; struct Channel { byte pin; byte state; byte count; unsigned long fell, rose; }; const int CHANNEL_COUNT = 3; Channel channels[CHANNEL_COUNT] = ...
0
votes
1answer
34 views

esp8266 esp-01 printing garbage values on serial monitor

I am trying to up an esp8266 esp-01. While monitoring the serial monitor it's printing garbage values. I am using arduino-mega to write the code to the esp8266. The sample code i'm trying to write is ...
0
votes
2answers
31 views

Accessing multiplexed I2C and UART pins of STM32F103 in arduino IDE

I want to access both of the multiplexed I2C and UART pins in the same program. I am programming in Arduino IDE.Can anyone please tell me how to access same pins for different functionalities?
1
vote
1answer
45 views

Why my serial message won't show on another when I try use 2 Arduino communication

I am trying to make a simple chatting program with my 2 arduino uno and 2 PC. But when I tried write a message using PC1 serial monitor the message won't show up on PC2 serial monitor. I can't see the ...
0
votes
0answers
52 views

ATTiny85 arduino interrupt

i would like to know why my code running on the ATtiny85 1Mhz not wake up after the interrupt. I use the ATTiny Core. #include <avr/sleep.h> // Sleep Modes https://goo.gl/Mm7wuk #include &...
0
votes
1answer
20 views

servo starts rotating whenever it is plugged

I am making a fish feeder using an Arduino Mega 2560, servo motor SG90 and RTC DS3231. I want to make it rotate twice a day, i.e. morning and 9 o'clock evening. Whenever I plug my Arduino board to ...
1
vote
1answer
16 views

IR module sensor query for Line Follwer Robot

Are the IR sensors used in Line following Robot and Obstacle avoidance Robot with Arduino UNO different ? If yes , where do we buy these parts online ? I used the following sensor in my Line Follower ...
1
vote
0answers
55 views

Arduino Program Memory Ran Out

I have a Arduino sketch I made and I have run out of dynamic memory on my Arduino Nano. How could I possibly reduce the amount of memory the program takes? (I'm not that good at this stuff) P.S: The ...
1
vote
0answers
47 views

Transistors to use for eight voltage sweeps from two PWM Arduino pins

On my Arduino Mega, there are two PWM pins open. There are eight analog voltage inputs to a datalogger. They are connected through a PCB, and I need test them with a DC voltage sweep. (There are many ...
0
votes
0answers
16 views

Checking/accessing Serial prevents clean upload of sketch via bluetooth?

I'm deploying some DIY home automation devices, built around a 3.3v pro mini, a HC-10 module, and a relay board. The arduino is able to be programmed over the bluetooth module, so once it's in the ...
0
votes
0answers
35 views

problem data I2C to sensor GY955/BNO055 (China)

I want to ask, I have a problem when running the Arduino sensor, I can't output data, but it's detecting that the sensor address has been paired. Like I2C has a problem or locks it. Last night it ...
0
votes
1answer
27 views

addt instruction of Nextion Display

I'm new to Nextion display. I'm doing a model of oscilloscope with the display and an Arduino Uno. I used the waveform component. I went through the instruction set and found two instructions to send ...
1
vote
1answer
25 views

Access is denied. Error compiling for board Arduino/Genuino Uno

Having this error- Arduino: 1.8.8 Hourly Build 2018/11/30 12:33 (Windows 10), Board: "Arduino/Genuino Uno" open sketch\LCD.ino.cpp: Access is denied. Error compiling for board Arduino/Genuino Uno. ...
0
votes
1answer
27 views

error 404 in HTTP GET request with Arduino Uno and ESP8266 using AT commands

when I try to send http get request I get error 404 AT+CIPMTX=1 OK AT+CIPSTART=4,"TCP","alirezaabrhshami.ir",80 4,CONNECT OK AT⸮⸮R5U9⸮⸮b⸮⸮j OK > Recv 47 qytes SEND OK +IPD,4,223;HTTP/1.1 404 Not ...
0
votes
1answer
39 views

CPU information on Arduino Serial Monitor

how to show the CPU temperature, CPU usage (percentage) and the memory usage(percentage) in Arduino Serial Monitor.
0
votes
0answers
22 views

Programming ATMEGA328p via AVR Pocket Programmer

I have a ATMEGA328p on a breadboard with the following connections to the 2x3 ICSP connector and its connected to AVR Pocket Programmer. While running AVRDUDE utility, i get the following error, ...
0
votes
1answer
55 views

Why wifiManager.setTimeout(60) is not working?

in this code I am using wifiManager.setTimeout(60); so that when it fails to connect to the wifi it should restart. However, wifiManager.setTimeout(60) is not working at all. It get stuck and display ...
1
vote
1answer
70 views

Why can't I print boolean variable values (0 and 1) through println function?

source code : int buttonPin = 8; boolean buttonState = 0; void setup() { Serial.begin(9600); pinMode (buttonPin, INPUT); } void loop() { buttonState = digitalRead(buttonPin); Serial....
0
votes
0answers
35 views

Controlling multiple stepper motors non-simultaneously

I want to control multiple stepper motors one after another and at different speeds/directions. I am using the ULN2003 driver and the stepper has 5 coils. My current code for controlling one motor is:...
0
votes
1answer
41 views

let Arduino limit it's own input power

My current project will be sitting next to a 12VDC power line. It seems a waste no to tap it to power into the Arduino board too. Now I read everywhere that with 12V input quite a lot power gets ...
1
vote
1answer
47 views

Sparkfun CAN Shield BMW OBD2 reading

I bought the CAN-Shield from Sparkfun https://www.sparkfun.com/products/13262 and I also got the Uno from Sparkfun just to be sure everything works fine. Some info about my car: BMW E91 2006 OBD2 is ...
0
votes
0answers
50 views

Problem in the library blynk

there was a problem loading the sketch, writing that the BlynkSimpleSerial.h library is missing. I tried to find on the Internet I did not tell me how to fix this error. #include <SoftwareSerial....
1
vote
1answer
39 views

Error:expected declaration before { token. (Havent i already declared it?) [closed]

I'm getting the error message: sketch_dec31d.ino: In function 'void setup()': sketch_dec31d:20: error: expected unqualified-id before '.' token sketch_dec31d.ino: In function 'void loop()': ...
-1
votes
1answer
18 views

I keep gettint the error expected construcotr,destructor or type conversion before = token [closed]

#include <dht.h> dht DHT; #define DHT11_PIN 2 // what pin we're connected to // DHT 11 String TextForSms ; String humidity = " Humidity: %"; String temperature = " Temperature"; String ...
0
votes
0answers
33 views

Configuring I2S with ESP32 and WM8978

I'm trying to get I2S audio working with an ESP32 and WM8978 codec, using the TTGO TAudio dev board. Currently, I'm trying to implement the I2S example code provided by Espressif (link below) using ...
0
votes
1answer
20 views

Troubleshooting optocoupler

I'm trying Project 15 from the Arduino Uno Projects book (optocoupler). I manage to turn on and off a LED in a separate circuit using my Arduino-driven optocoupler. Now I tried to also turn on some ...
0
votes
1answer
36 views

Docs for using i2C LCD with Newliquidcrystal_1.3.5 library?

I bought a 20x4 I2C LCD from OddWires. (https://www.oddwires.com/20x4-lcd-display-with-i2c-interface/) It came with ZERO specs or documentation. After some hair-pulling I was able to figure out how to ...
0
votes
0answers
26 views

Differing behaviour from Arduino Nano when plugged into laptop vs power source

Well here's a weird one. I'm monitoring a mic on an analog pin of an Arduino Nano and using the variation in voltage to control and LED. When plugged in to my Laptop (USB 3, 500ma available, the ...
0
votes
1answer
24 views

Why is this failing after 3 iterations?

I simply cannot figure this out, why is this failing after 3 iterations? Other than that, what better way is there to do this? Thanks! #define rotary_encoder_topic "/rotary/encoder" #define ...
1
vote
4answers
159 views

How to blink led and run another code at same time?

I had written a code to calculate rpm of the motors using IR sensor and Arduino nano and displaying it on OLED . With that I want an LED to blink always. Here is the code what I did: You can skip the ...
0
votes
2answers
25 views

Software serial conflict with WiFi on ESP8266

I'm trying to use an ESP8266 (Wemos D1 mini) to read from a 19.2K serial port and report the results over WiFi. Programming is via Arduino IDE. The code to read the port works just fine if WiFi is not ...
0
votes
0answers
24 views

LCD (I2C) issues with pull up resistor

I'm close to finish my first DYI project. But a never seen issue on the breadboard has apprear as soon as assembled. The LCD is always / totally blank/black. When I remove the 4.7 K ohm pull-up ...
0
votes
1answer
21 views

Nodemcu 1.0 and boot mode (1,6) after soft reset

I have a problem with a nodemcu 1.0 (lolin) board. Sometime a soft reset is performed from the watchdog and the board freezes in boot mode (1,6) (I have to manually reset the board to restart it). I ...
0
votes
1answer
28 views

How can I pulse a stepper motor whilst also wanting to handle other tasks?

A Polulo A4988 driver board listens for a LOW -> HIGH pulse on a digital pin to step a stepper motor. A simple way to pulse this with a delay of say 100μs, is to use the delayMicroseconds function:...
0
votes
2answers
36 views

What is the typical form for a finished Arduino project?

I just started with Arduino. I am an experienced software developer so the programming side was already mostly known to me, and I am surprised at just how easy Arduino have made the hardware side of ...
0
votes
1answer
37 views

Detecting the down time of a system by subtracting the time when the sytem gives ON signal and when it goes OFF

int pin_state = LOW; struct Channel { byte pin; byte state; byte count; unsigned long fell, rose; // times of fall and rise }; const int CHANNEL_COUNT = 3; Channel ...
0
votes
2answers
42 views

NEED Help With Servo motor

I have just bought a MG90s tower pro servo for my school project and there is a problem. As soon as I connect my servo to the cnc shield or directly arduino, the whole arduino board turns off. I ...
0
votes
0answers
14 views

How can I tell if sketch is really uploaded

I am trying to figure out how to tell if my sketch upload was really successful. My Arduino UNO with AVR ISP example loaded and a Chinese AVR ISP programmer board inserted tells me that my sketch was ...
0
votes
1answer
31 views

What is the sizeof() Arduino's built in HIGH and LOW?

This might be a stupid question to ask but I'm curious. I decided to test this myself and I got a value of 2 for both HIGH and LOW, why would it output 2?
0
votes
0answers
50 views

Ethernet library error request for member 'bytes' in 'ip.IPAddress::_address'

Anyone know the solution for this problem using Ethernet library and code from arduino.cc website ? :87:33: error: request for member 'bytes' in 'ip.IPAddress::_address', which is of non-class type '...
1
vote
1answer
50 views

Does direct port access interfere with PWM?

I think I've scoured the SE for questions about PWM, and fast digitalWrite etc, but I didn't see this point addressed. I need to use direct writes to some digital pins. Some of the pins on the port ...
0
votes
1answer
91 views

'“/dev/ttyACM0”: Permission denied' on Ubuntu 18.04

I'd like to say that I'm a noob at both Arduino & Ubuntu (have some command line experience). I've set port permissions, joined the relevant groups (tty,uucp,dialout & plugdev). I know that ...
0
votes
1answer
21 views

How to send characters to Arduino serial using Linux command line without tail -f?

I want to send characters to Arduino serial port which makes the Arduino turn on/off an LED. Here is the code: int led_main=8; void setup() { pinMode(led_main, OUTPUT); Serial.begin(9600); ...
0
votes
2answers
22 views

Mosquitto TLS over WifiMulti on ESP8266

With these few lines I am able to attach my certificate, tell it to WifiClientSecure the certificate, start the wifi as well as the mosquito pubsubclient: WiFiClientSecure espClient; WiFi.begin(ssid, ...
0
votes
1answer
15 views

Teensy not pulling down despite digitalWrite(x,LOW)

I'm trying to switch a ATX PSU on and off by serial command. My code is as follows: #include <Arduino.h> #define PIN_LOW_FOR_POWER PIN_F0 void setup() { Serial.begin(115200); } void loop() {...

15 30 50 per page