All Questions

0
votes
0answers
4 views

comparing byte array with multi-dimensional array

i am having a byte array let us say byte arr[7]={123456}; how to compare this array with a list of of other array like this for example byte buffers[5][7] = {123456,654321,987654,456789,765432}; ...
1
vote
0answers
11 views

MPU6050 Acc and Gyro readings swapped

I have been trying to figure out this MPU6050 for a bit but the RAW readings are confusing me. It seems to me that the accelerometer readings and the gyro readings are getting swapped... and I don't ...
0
votes
0answers
18 views

How do I handle serial transmission errors properly?

I have an ATMega328 board which processes instructions from a PC and reacts in a given way. The code is straightforward: The board void setup() { Serial.begin(9600); Serial.setTimeout(50); //...
1
vote
4answers
71 views

Trying to use an LCD 1602 to display, but I don't have a 10 KOhm potentiometer

I'm following this tutorial page and I don't have a 10k ohm potentiometer on hand. Could I replace it with resistors to simulate a manual setting and replace the resistors to adjust to a new settings. ...
0
votes
0answers
16 views

NRFlite Question

I'm trying to use NRFlite library to facilitate a simple wireless remote incorporating a 3x4 keypad and nRF24L01 modules. I have it all working well except for one programming puzzle. All of the ...
0
votes
1answer
49 views

Distributing power evenly to multiple pins

It's an arduino board, model UNO R3. I have 3 5cmx10cm heating pad power required 5V DC up to 1A and can withstand up to 12V DC. These 3 heating pad are wired up onto arduino board with red wires ...
0
votes
0answers
20 views

Why is this Code not working with Esp8266?

While using DumpInfo example or Rfid_read_personal_data Esp8266 & RFid are working fine, but while using the code given below, Rfid scanner is unable to scan the card (I'm making an attendance ...
0
votes
0answers
13 views

Real-time Pub/Sub thru MQTT between JoyStick and OnBoard Drive units [both ESP8266] - Connection issues

I looked around for solutions to my issue by searching on the forum and elsewhere and haven't seen similar issues - (https://arduino.stackexchange.com/search?page=2&tab=Relevance&q=MQTT%...
-1
votes
2answers
31 views

Choosing a motor for my project

Sorry For my bad English. I will start to make a mini conveyor (100 cm x 30 cm) with an Arduino Uno. What is the best motor should I choose for my project ? - Stepper Motor ? - DC Motor ? Etc. ...
-2
votes
1answer
39 views

Sending PWM to a receiver

Hi I am new to Arduino and have limited experience with the system but I want to do a project that requires me to send a PWM signal to a RC car receiver. I have been looking around and have only ...
0
votes
0answers
39 views

Arduino Genuino UNO

I have Arduino Genuino Uno and 'Extra PC' Debian Linux USB dongle. I can get board data S/N etc., but TX LED permanently lit and data showing on TX line with an oscilloscope. I get the following error ...
0
votes
0answers
36 views

How to get the Highest Precision Motor Movement? [on hold]

Context: I have a project where I need to aim a laser pointer with as much precision as possible (on an affordable budget). The laser diode is attached to 2 servos to cover a plane. The thing is, I ...
-3
votes
0answers
19 views

About controlling of servo motor using atmega32 [on hold]

Can I control 4 servo motors using atmega32?
-2
votes
0answers
12 views

About possibility of implementation of CAN bus using atmega32 [on hold]

Does atmega32 has built in CAN bus...if not,how to implement CAN bus using atmega32
-1
votes
0answers
15 views

Receive SMS on Arduino

NeedHelp. i have 2 type of sending sms. ihave tilt sensor to trigger an "accident sms" and proneArea for sending sms every 3 seconds. i need help for Receiving SMS , if the gsm receive an sms it will ...
0
votes
2answers
35 views

Accessing 2 dimensional array in PROGMEM inside loop

I am unable to access elements of a 2D PROGMEM array from inside a loop. Please see the following example: const byte a1[] PROGMEM = {'a', 'b', 'c', 'd'}; const byte a2[] PROGMEM = {'e', 'f', 'g', 'h'...
-1
votes
2answers
26 views

Powering L298N drivers from mains power supply [on hold]

I am powering 2 stepper motors with an L298N driver each (from a 9V 2A external power supply powered from the mains: https://www.amazon.co.uk/BERLS-Power-Adapter-Elegoo-Connectors/dp/B07GSM6YLX/ref=...
-1
votes
0answers
33 views

Is communication between Arduino and Flash possible? [on hold]

I'm working on a project to use a sound sensor on an Arduino and connect it to adobe flash. The sensor must trigger an animation or object on Flash. I've been looking all over the internet for ...
-1
votes
0answers
8 views

How to write and read data with multiple Xbees ( receiving garbage data when trying to read sensor)

I have written a program to toggle digital pin of Remote Xbee. the code: void setup(){ pinMode(led, OUTPUT); Serial.begin(9600); } void loop() { setRemoteState1(0x5); delay(1000); ...
0
votes
1answer
33 views

if/else on digitalRead not executing on 'else' portion

I am a beginner with C++ but used to be good with BASIC (2 decades ago lol). I'm building a peristaltic metered doser that allows you to input desired mL on a 4x4 keypad and then when 'fill' button is ...
0
votes
0answers
22 views

How to speak from a client to another client over a Server - ESP8266?

In the last few days, a problem kept me busy. I tried to communicate from a client to another client over a server, like that: Client1 -> Server -> Client2 Client1 sends a small message (like the ...
0
votes
0answers
18 views

Using map function to stablize a quadcopter [on hold]

Is it okay to use map function in arduino to stablize a quadcopter? Like.. map(angle value, the Lowest angle,the highest angle,the lowest motor speed,the highest motor speed); These are what i ...
0
votes
1answer
18 views

Define preset colors using FastLed library

I'm using an addressable 150 led strip and an Arduino Nano to control it, using FastLed library. I'm tring do create a function turn_on_leds, which gets 4 parameters: 1) delay time for lighting a ...
1
vote
0answers
19 views

Troubleshooting Program using sensors and actuators

I am doing a project on waste management. I have to separate waste majorly as metal, plastic and other materials. For that using Arduino Mega 2560. I have connected Inductive proximity sensor @ A0 (...
0
votes
1answer
16 views

Converting code for ATTINY85 to ATMEGA2560. Pin change interupts

I have code that compiles correctly for an ATTINY85 board using the ARDUINO IDE but I don't have an ATTINY85 board. I have an Arduino Mega ATMEGA2560 and when I select this board in the Arduino IDE ...
0
votes
0answers
42 views

Problem with variables

I have a simple Low pass filter in my program that stops working after some time (Let say 4 hours or more). 'CRate' is a double type variable between -20 and 100. uint8_t T_Sample=10; double FCR0=...
-2
votes
0answers
13 views

MCUSR not changing after watchdog reset

I use Atmega2560. When the watchdog timer resets I want to perform certain task which cannot be included in the ISR. So I tried using the MCUSR but the value doesn't change. Please provide support. ...
0
votes
1answer
32 views

HC-05 bluetooth module

I was able to connect my HC-05, pair it with my phone, and I can see data in the Serial Bluetooth Terminal Android App. But when I try to connect it to a certain application it says it cannot find it....
0
votes
1answer
9 views

Is it possible to connect miband2 and arduino nano (?)

I want to make an IOT project using an Arduino nano and I need heart rate sensors. I I have a miband2. So, is it possible to connect them ?
0
votes
1answer
46 views

Will a simple RC filter work with my mechanical rotary encoder, or do I need a Schmitt trigger?

I bought some incremental rotary encoders online https://www.bourns.com/docs/Product-Datasheets/PEC12R.pdf The spec sheet for those suggests a filter circuit for the outputs of the encoder that ...
0
votes
0answers
35 views

Does not execute code on loop;only run code of set up

only display this: ARDUMOTIVE ArduinoBased compassn.Compass Michalis Vas. nothing else. I tried another Arduino Uno, Mega, Nano, but execute only set up. Display is working.No compiler errors.Sketch ...
1
vote
2answers
45 views

Unusual use of << operator… not a bit shift?

Poking through the example code of SDFS, I saw the following: static ArduinoOutStream cout(Serial); // F stores strings in flash to save RAM cout << F("\ntype any character to start\n"); What ...
0
votes
0answers
18 views

Secure connection with ESP8266 and socket connection

I want my system to stay connected 100% of the time. I'm using a TCP Socket connection on ESP8266. So, I created a test Sketch like this below (and a NodeJS server app). Everything works fine, that is,...
-1
votes
0answers
16 views

I cannot get dynamically the state of my arduino uno pins (using python, firmata raspberry pi) [on hold]

I use a raspberry pi 3 to pilot my arudino uno, via usb. I'm using python and firmata and Tkinter library. Here is the code (below you will find the explainations) : #!/usr/bin/env python # -*- ...
0
votes
2answers
33 views

Image Processing

I have a project I am working on where I need to check the pressure on a gauge using a camera. I am familiar with a little openCV programming using a laptop webcam. However, for this application, I ...
0
votes
1answer
18 views

Arduino IDE + ESP32 Webserver - how to redirect to root after click on button

I'm trying to use ESP32 + Arduino IDE to control a relay. I've started by using the library and the code below. The problem I'm having: after clicking on the button and activating the pin, if the ...
0
votes
1answer
27 views

How many devices can I connect to an arduino at once? [on hold]

Can I use 6 proximity ultrasonic sensors as input source for a single arduino and then use 6 different vibrating motors as output on it?
0
votes
2answers
33 views

Problem with a code

I have one problem with my code and I'm a beginner and I can't solve it. Can you help me? Thank you so much. I have this problem: error: expected unqualified-id before '{' token And this is my ...
0
votes
0answers
14 views

Sending double data from Matlab to the Teensy 3.6 via the microUSB

I've been hitting against a wall for over a week now. My current project is to use a Teensy 3.6 to send data over an SPI bus to a chip which is effective going to be a signal generator. I've made a ...
1
vote
0answers
24 views

Reading data from SPI on ESP32-WROOM-32

I'm newbie with Arduino and need to do a short task: read data from SPI (sent by another microcontroller) and send to WiFi (by ESP32-WROOM-32). I can't understand how to initialize and read data from ...
0
votes
0answers
15 views

Trying to install amforth on Leonardo board

Just got a Arduino Leonardo (with headers) dropped in my lap this week. I've tried experimenting with the Arduino C++ IDE and find it awkward. I have some previous experience with Forth and would like ...
0
votes
0answers
6 views

How can I use my sim808 as Both GPS and GSM module for this code

#include<LiquidCrystal.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); #include <SoftwareSerial.h> SoftwareSerial gps(10,11); // RX, TX //String str=""; char str[70]; String gpsString=""; char *...
0
votes
0answers
27 views

Arduino master/slave communication using RS485

I am using Arduino Uno as a Master Device and 3 Arduino Unos as slave devices. I am sending data from each slave to master after every 3 seconds continuously, and is going to execute further logic ...
-1
votes
0answers
28 views

How do we extract a code from an Arduino mother board (Arduino Uno R3)? [duplicate]

I was working on a school project with my fellows and made an Arduino car a year ago and we all had a car each so here is my problem after one whole year we need the cars for a competition and my car ...
0
votes
0answers
21 views

HC-SR04 time how long an object is in range

I need help trying to figure out how long an object stays in front of the sensor in in a specified range, for example, if an object is in within range of 10cm and 200cm I start a timer, the moment ...
1
vote
2answers
32 views

String Comparison Result [on hold]

I've following code: char a[5] = "bang"; char b[5] = ""; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run ...
0
votes
1answer
35 views

Parse a large json response with ESP8266

I'm doing a project where my Arduino uses an external ESP8266 wifi module (with AT firmware) to send http requests and receive server response. I'm trying to get an NBA scoreboard, and here's what my ...
0
votes
0answers
12 views

nRF24L01 multiple node ping pong example

I have used simple ping pong example found in maniacbug library. I am using Arduino nano + nRF24L01modules. With this I have one transmitter and two receiver. transmitter sends data on channel zero ...
0
votes
0answers
24 views

Receive and output signal for different durations [on hold]

If I want to receive a signal for 1 second, then delay for 2 seconds, then output for 3 seconds how should I write my program? Because I put delay 1 second in program it needs to receive signal for 1 ...
-2
votes
1answer
19 views

What can we do with our ECG arduino project to make it more applicable for competition? [on hold]

Our arduino-uno has already a OLED monitor 128x64 and AD8232 and we are not that confident to it.

15 30 50 per page