All Questions

0
votes
0answers
4 views

AC Voltage Sensing using Arduino Uno

Is it possible to sense AC Voltage using analog input for Arduino Uno or can it only read DC? I mean I've tried connecting an AC voltage source to analog and I'm reading some numbers. However, I don'...
1
vote
1answer
11 views

Serial Communication between arduino and nodeMCU

I am trying to connect a nodeMCU to arduino mega using serial communication so that i can read data from firebase. I have put the following code on the NODEMCU. #include<SoftwareSerial.h> //...
0
votes
1answer
13 views

why arduino can not write to server?

i write a code for Arduino + SIM800 for connecting to server. but it don't work! SerialGsm.println("AT+CIPSEND=63\r\n"); delay( 1000 ); receive_message(); SerialGsm.print( "GET http://sasasas.ir.ir/...
0
votes
0answers
13 views

Elegoo Uno R3 Shorting out after wire is plugged into 5v

I'm pretty new to Microcontrollers and I have mostly just a programming background. What I am trying to build is a device that uses the ultrasonic sensor to turn a LED on/off using the HC-05 ...
1
vote
1answer
18 views

Which sources of randomness are available? [duplicate]

I need a souce of randomness to generate a seed to pass to randomSeed. Where can I get this randomness from? Well, I hear I can read random noise from an unconnected pin. But I need to connect 9 ...
-2
votes
1answer
39 views

PIR sensor and hex inverter open collector

the M7404 Hex inverter is used to send an active low signal from a PIR sensor to a microcntroller pin However the reset is being constantly sent some signal keeping it set to on. You can tell because ...
0
votes
0answers
14 views

Confused in Voice or Speech recognition [on hold]

i'm doing a project to voice control some stuff in my house like lights , but i'm confused in choosing between elechouse module or EasyVR 3.0 to recognize my voice commands. I want my project to ...
0
votes
0answers
25 views

Why the PWM blinking the LED?

The LED on PWM pin is blinking while turning it on! Here's the code: int onHourONE = 11; int onMinuteONE = 00; int offHourONE = 23; int offMinuteONE = 00; unsigned long PWMdelay = 236; int PWMstatus =...
0
votes
0answers
14 views

“exit status 1 Error compiling for board Arduino/Genuino Uno.” Error when verifying code [on hold]

So I have been trying to learn use the Arduino LED Matrix, however I have faced a few roadblocks. I get a error everytime i verify/upload the code.The solutions on other forums seem to be on the lines ...
0
votes
0answers
41 views

how does c++ understand which function must to use?

in this code: void AdptSendReply(const char* str) { string s(strlen(str) + 2); s = str; AdptSendReply(s); } void AdptSendReply(const string& str) { string s(str.length() + 2);...
0
votes
1answer
24 views

Rounding float number

I want to enable user to change the duration of PWM from 0 to 255, the number should be in minute and increase/decrease with two push buttons. (X) x 255 / 60000 = minute In above example each time ...
0
votes
0answers
11 views

Connecting GoPro to Raspberry Pi with Bluetooth [on hold]

Is it possible to send commands to the GoPro and receive video/photos with a raspberry pi over Bluetooth?
0
votes
1answer
19 views

Libraries not included correctly

I stumbled upon the following unexpected behaviour and am curious about its cause. header.h: #include <Time.h> [...] main.ino: #include "header.h" #include <Time.h> [...] My code is ...
1
vote
1answer
39 views

Problem with passing string pointer from child to parent

I am trying to pass a pointer to a const char * from a child to its parent, but I am clearly not understanding how to do this correctly. Here is the code which contains three classes: 1) parent 2) ...
0
votes
1answer
24 views

Memory usage in AnalogBinLogger of SdFat library

The AnalogBinLogger.ino file of SdFat library says the following: Each 512 byte data block in the file has a four byte header followed by up to 508 bytes of data. (508 values in 8-bit mode or 254 ...
-2
votes
2answers
33 views

How to prevent modify library of arduino?

For some reasons of security, I created library for everybody to use, but I don't want people change my library, cause it make device not work. I search around but still not working. Do I need to set ...
0
votes
1answer
17 views

Velleman KA02 not working on Mega 2560 r3

I have a Velleman KA02 audio shield. When I use this shield on an Arduino UNO R3 with this sample code, it works. And by "work" I mean when I interact with the Serial Monitor (by pressing Y, for ...
1
vote
1answer
49 views

analogRead() output oscillates even though the pin is grounded

I'm using Arduino Micro to read from 5 flex sensors and display the corresponding angles to the Serial monitor. I am currently having quite some problems with the oscillating values I am getting from ...
0
votes
0answers
24 views

Best way to add 2.54mm screw terminals (or similar) to breadboard [on hold]

I am prototyping various projects and really like having a solid screw terminal to attach my wires coming to/from the breadboard. I like the 2.54mm pitch screw terminals (though please say if there’s ...
0
votes
1answer
31 views

Can you put Ardupilot on any flight controller?

Some FC's say that they support cleanflight and have no mention of Ardupilot. Is this just because its what's recommended or because it's all that works?
0
votes
1answer
28 views

How to utilize SPI Serial bus on a ATSAMD21G18?

Like the title suggests, I have a ATSAMD21G18 microcontroller that I want to interface with a LTC6803-4 chip, but I'm not sure how to set up the SPI bus on the microcontroller, and the datasheet ...
1
vote
2answers
48 views

Arduino Nano LED not working

I am just starting with Arduino and was trying to make the LED example work. I changed the script as follows to keep the LED on: #define LED_PIN 12 #define LED_RX_SIG LED_BUILTIN void setup() { // ...
0
votes
1answer
30 views

Is it safe to power Arduino project using a power bank and wall charger?

I got an Arduino project that need a constant source of power. Rather than dealing with batteries, I want to use a power bank like this: Better yet, I want to keep the power bank plugged in to the ...
0
votes
0answers
7 views

Possible to have different torque levels on MG966R servo with Rotary Potentiometer?

I want to apologise first and foremost, and say that I am very new to Arduinos! I wanted to control the torque on a MG966R servo so that I can separate it into 4 different torque levels. I read that ...
0
votes
0answers
17 views

How to count and list number of all UDP clients to WiFi softAP or event if new available?

I have simple ESP32 app (server, soft access point): WiFiUDP Udp; .... void setup() { WiFi.softAP(ssid, password, WiFi_chennel); Udp.begin(portServer); } .... void loop() { .... for(byte i=0;i<...
0
votes
0answers
11 views

RC servo motor initial position

I bought a RC servo motor and I try to run it to both clockwise and anti-clockwise direction. I tried to set the initial position myself but after I power up my Arduino, the servo motor will go to it "...
0
votes
1answer
31 views

About how to calculate execution time of avr code [on hold]

I have vector nav VN100 IMU sensor.I have interfaced it with ATmega32,reading roll,pitch and yaw angels in ASCII format and convert them to float.I want to control a servo motor according to the roll ...
0
votes
0answers
30 views

defined parameter for function in .h body but do not have parameter in code .is not error? [on hold]

in .h file typedef bool (*UartRecvHandler)(uint8_t ch); void handler(UartRecvHandler handler) { handler_ = handler; } in .cpp file glblUart->handler(UserUartRcvHandler); UserUartRecvHandler ...
0
votes
0answers
7 views

In HLW8012 schematic, where should the Referenced ground be connected [migrated]

In the datasheet of HLW8012, the both 33nF capacitors , 1K resistor and 0.1uF capacitor are connected to GND. I'm not sure where should I connect those ends of components marked with GND symbol, (To ...
0
votes
1answer
21 views

ESP8266 WiFiManager never manages to AutoConnect?

Running through examples of WiFiManager, and trying to incorporate the code into my own, it seems that WiFiManager (either version) never manages to connect using saved WiFi information. Starting my ...
0
votes
0answers
66 views

Interrupts arduino interrupting serial comunication

I have problem with communicating VB.Net-Arduino. It seems the interrupt pause my serial communication line in void loop() { ... }. I don't know what to do, and I can't erase interrupts line since I ...
0
votes
0answers
35 views

Are CH340/341 now widely supported? [on hold]

I'm making a peripheral using a Nano clone. All of those seem to use the CH34x serial chip. I'd like to believe that a naive user can just plug my device in and the OS will either have or find the ...
0
votes
1answer
29 views

0 temperature & hummidity DH11

Alright so I'm having problems with my code. Its my first time using DH11 I keep on getting that temperature is 0 degrees so as the humidity #include "dht.h" #define dht_apin A0 dht DHT; void ...
1
vote
1answer
566 views

Can I use the PWM pins as regular digital input/output pins?

In regards to the arduino which has pwm pins, can I use these pins as normal input/output digital pins or not? Thanks in advance.
0
votes
0answers
34 views

Millis() does not back to zero after woke up from deep sleep mode

I am going to make a project that needs four boards of Arduino which synchronization in time is needed. The project is about capturing the timestamp (in ms resolution) whenever something is crossing ...
0
votes
1answer
39 views

PWM delay without blocking the code

I want my LED to turn on gradually without using the delay() function and blocking the code. Here's the code i came up with: int led_pin = 6; unsigned long millisTimer = 0; int PWMdelay = 5000; int ...
0
votes
1answer
23 views

Sim800L Uploading issues, HTTPACTION returns 0, 302, 701

I'm using the Sim800L module and the NEO6M GPS Module in combination with an Arduino nano to create a simple tracking device. I get the data from the GPS and try to upload it to my site with some ...
1
vote
3answers
41 views

class enum was not declared in this scope

I am programming an Arduino. In the same .ino file as setup() and loop() I have defined the following: void setup() { // setup code } enum class CYCLE { TypeA, TypeB }; String cycleToString (...
0
votes
1answer
53 views

esp32 cam and PIR sensor

I have tried all the GPIO pins listed here:I am following this tutorial to save a picture using the ESP32 cam board. I am trying to add a PIR sensor. https://randomnerdtutorials.com/esp32-cam-take-...
0
votes
0answers
29 views

unable to code arduino with jetson tx2

I am building a robot where I need to communicate from jetson tx2 to arduino using USB. I have compiled the arduino ide for aarch64 with openjdk-8-jre java_sdk. But unable to upload code to the ...
0
votes
0answers
30 views

Using 8bit ports as 8bit I/O variable (while using USB,I2C, SPI and Serial) - keyboard

I am seeking HW. I would like to make keyboard with enhanced functions (RGB backlite, macros, programmed profiles etc) driven by some small MCU (Arduino Micro Pro or something similar). To support ...
0
votes
2answers
31 views

Parsing Arduino Receiving Strings

I'm currently using google geolocation to get location data to one nodemcu and sending it through serial to another Arduino. The serial command I'm getting right now is, 1.450187T103.824745 I'm ...
2
votes
2answers
331 views

What is the best delay to use between characters sent to the serial port

I have an Arduino Uno. It's role is to echo back what it receives. But if I send it a stream of ascii characters it starts to error after the first one. Occasionally it gets the second character ...
0
votes
0answers
28 views

How to install Processing 1.5.1 on windows? [on hold]

I need download this version because the code i have require this version to be able to run perfectly. The problem i am facing is that when i try opening processing.exe a dialog box appear, saying: "...
0
votes
0answers
10 views

HC-05 Bluetooth AT Mode

I know that I need to pull pin #34 high on the HC-05 "chip" (AKA PIO11) while powering ON the chip in order to put it into AT mode. Can I leave that pin high while programming, or does it need to go ...
1
vote
1answer
27 views

Is this the right way of using an RF communication?

I have a 433Mhz Superheterodyne receiver and a hand set remote of similar frequency, I'm using the RC-Switch library and I couldn't find a better way than using the "numbers" that I'm receiving like ...
-1
votes
0answers
17 views

MPR121 Capacitive Touch adding more touch capabilities

I wish to apologize beforehand as I am relatively new to this. The Arduino MPR121 capacitive touch has space for 12 pins and I would like to add more. I know you can attach four other boards but due ...
0
votes
0answers
33 views

Garbage Characters Being Sent from HC-05

I have a contraption that uses a HC-05 Bluetooth module and sends info to a processing program which controls the contraption. The processing program is a follows (from a video by How To Mechatronics,...
0
votes
0answers
29 views

Is my esp8266 is broken?

I am trying to use esp8266 with Arduino UNO. I connected the wired as this I even tried switching the tx->rx / rx->tx and I used this code: // RemoteXY select connection mode and include ...
-1
votes
3answers
35 views

Getting “spikes” from an array of values - measure rpm using accelerometter

For a project where I intend to use an arduino and an accelerometer to get rpm of an diesel / gasoline engine i intend to use following solution. I glued an mma8453 accelerometer to a neodium magnet ...

15 30 50 per page