All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to declare char array[] using integers?

can me anyone please tell, how to declare a char variable using a few of integers? I need to declare a byte information for shiftOut function as char. int a = 0; int b = 1; int c = 0; int d = 1; int e ...
0
votes
0answers
6 views

Standalone Atmega328p AU PCB noise problem

I am using my standalone atmega 328p au custom PCB for switching 220v contactor via relay module. PCB contains 5v smps power supply, triac based SSR for indicators and output pins which connects with ...
0
votes
0answers
14 views

how to solve meaningless characters on serial montior Arduino

I am new at Arduino Uno, I am trying to use the IMU sensor and read data from it so I installed mpu9500 lib from the Arduino website and run one example from its lib. However, as I open the serial ...
0
votes
0answers
3 views

Arduino MFRC522 RFID reading and writing question

I am currently working on a final project in one of my classes, and my task is storing some information on an RFID card and then displaying it later. I need two Arduino programs, one to write data to ...
0
votes
0answers
9 views

Programmatically-adjustable buck converter module?

LM2596 is easy to use and cheap, but I have to adjust the output voltage using a screw driver. On the web, there was a "hack" that someone posted, but that hack does not seem as clean or ...
0
votes
0answers
10 views

Arduino stops reading sensor data correctly after a short time

So I made a little project connecting the arduino nano (AZ DELIVERY) to a DHT 11 sensor and an LCD Display output to the display works fine continously but the sensor data seems to get corrupted after ...
0
votes
0answers
12 views

Stm32 Blue Pill Internal reference voltage Arduino IDE

I want to use the internal reference voltage (1.2V) of stm32f103 blue pill using Arduino IDE. I searched the whole internet but couldn't find anything. I need help with this. Thanks.
1
vote
0answers
15 views

TRT-25 and Arduino Uno

I am reaching out for help on a project I am working on. We are trying to integrate a reaction torque sensor and I am having a hard time deciding how to go about it. Previously I assumed that like my ...
-1
votes
0answers
15 views

Arduino Uno Wifi R2 gyroscope precision (LSM6DS3TR IMU)

I'm testing the basic gyro functionality of the Uno Wifi R2. Using the "SimpleGyroscope" sketch from LSM6DS3 library and I don't think it reads precisely. With Uno sitting flat on my desk ...
0
votes
0answers
15 views

How to export RSSI values from arduino ide to Excel (REAL TIME UPDATE)

i am using esp32 for getting the rssi values from esp 32 using Arduino IDE. MY CODE #include "WiFi.h" void setup() { Serial.begin(115200); // Set WiFi to station mode and disconnect ...
1
vote
0answers
19 views

Interfacing SPI (MCP3903)

I'm trying to interface MCP3903. I haven't really don't any SPI interfacing before and I can't seem to find clear enough answer for newbs. Please bare with me. I'm trying to use this library. http://...
1
vote
1answer
24 views

Can't read data from registers using I2C

I am trying to read data from the registers 6, 7, 8 and 9 of the STC3100 (Data Sheet) using an arduino uno. I followed this tutorial: https://howtomechatronics.com/tutorials/arduino/how-i2c-...
1
vote
0answers
40 views

Parsing read SD file into 2 variables

Recently I started some tests controlling water heater with temperature sensor data as described in detail here So far I've been testing a small dataset to control water temperature that is quite easy ...
1
vote
1answer
40 views

Where is the documentation for writing an Arduino core?

I'm interested in writing an "Arduino core" (i. e. porting Arduino to a new MCU and new board(s)). I'm having trouble finding much documentation on how to do so. Am I missing something? ...
0
votes
2answers
27 views

Adding another flow sensor to sketch

Adding another flow sensor to sketch I have a water flow sketch I use for my freshwater consumption. I would like to adapt it to use for diesel fuel consumption. The difference is with a diesel ...
0
votes
1answer
39 views

if(Serial.available()>0) VS while(Serial.available()>0)

What's the low level difference between if(Serial.available() > 0) and while(Serial.available() > 0)? On what conditions would you choose one over the other? I was testing my codes on 4 daisy ...
9
votes
1answer
2k views

Why is our refresh rate consistently decreasing in logging on SD card?

The current code is used to gather the state of 12 infrared beams and log them to an SD card using the real time clock to mark the time. The code uses a switch to turn the device on and off and an LED ...
1
vote
0answers
18 views

Problems with Hardware Serial (UART) on Nano 33 BLE Sense

my new Nano 33 BLE Sense arrived today. I'm working on a project to send data from the the Nano via an Xbee S2C module to a receiver module connected to a Nano 33 IoT. I had the project working ...
-1
votes
1answer
25 views

Serial and I2C not working together

I have very peculier problem. When I run this code SSD1306 fails to initialize. Output at serial console is: 20:26:33.194 -> MPU6050 OLED demo 20:26:33.532 -> SSD1306 allocation failed #include &...
0
votes
2answers
68 views

Pushbutton to initiate a 5 time flash

The following code operates in a way that LED starts to flash only if the pushbutton is pushed for one second. I want to change this and make the LED flash for 5 times, immediately on push, regardless ...
1
vote
1answer
58 views

What is the best way I can detect if a ping pong ball has hit the ping pong table?

The ultimate goal is to track points, which in the case ping pong, is how many times the ball has touched the table. My concerns are with how light the ball and therefore the impact on the table will ...
1
vote
0answers
26 views

please help me when compile this code it says 'sendATcommand' was not declared in this scope [closed]

int8_t answer; int onModulePin= 2; int counter; char aux_str[150]; char aux; char frame[200]; char latitude[15]; char longitude[15]; char altitude[6]; char date[16]; char time[7]; char ...
-2
votes
1answer
27 views

Serial.begin(9600) some reson this peace of line isn't working [closed]

const int trigPin = 9; const int echoPin = 10; long duration; int distance; void setup() { } Serial.begin(9600) pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); void loop() { // Clears the trigPin ...
0
votes
1answer
27 views

Best way to obtain angular velocity from a 9 DoF sensor

I have been using a BNO055 sensor (9° dof IMU) for a project which will use angular velocity to the mouse cursor on screen. So far, I have gotten quaternion output from the sensor and been able to ...
1
vote
1answer
21 views

How detect I2C errors with requestFrom()

I am going to use MCP23017 chips, and some of them will be cabled with a 1 meter max unshielded cable. I am expecting that certain transmissions may toss errors. So I want to tackle this problems by ...
1
vote
0answers
23 views

Motors not working with a motor Shield

Got a Duratech motor shield today, and I'm wondering why my motors do not run. Appreciate any help. The code I am using is the Adafruit sample code, Motorparty. The servos work however the motors do ...
1
vote
0answers
29 views

Blew my arduino pro mini s4 named component

While working on my project I supplied 12v to my pro mini through raw input and then a s4 named component smoked and my pro mini stopped working . It didn't turn on either through vcc or raw. The ...
1
vote
1answer
159 views

Hexadecimal array does not add up as expected

I have an array of hexadecimal values as given below. byte Hexa_Val[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; I want to increase this array from the end. As in, go from {0x00, 0x00, 0x00, ...
1
vote
0answers
15 views

Error 1,603,0 when http post request using arduino and sim900a by Json format

I want to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data and have an error.Can someone help me to solved the error 1,603,0 since I ...
1
vote
0answers
27 views

Want to decrease the number of power supplies from 4 to just one [closed]

Hello everyone I have 4 stepper motors 2 being nema 23 and 2 being nema 17 with nema 23 rated at 2.8 amps and nema 17 rated at 1 amp also the servos are tower pro mg995. I want to decrease the number ...
1
vote
1answer
41 views

Random Servo Movement with Arduino Uno

Recently, I have been working on a project involving 8 Tower Pro sg90 servos and an Arduino Uno. The issue I am running into is that the servos will randomly move when connected, without even ...
1
vote
0answers
39 views

How do you know what to call the digital pin your using? changing the sensor pin your using

I downloaded a water flow sketch and got it working on a bread board using an Uno, and a LCD shield. I what to make it on perf board using a Nano, and an NOT I2C LCD. I soldered it all up, got "...
1
vote
0answers
14 views

Can't connect to internet with Proteus Arduino project

Can any one help me with making a connection to the Internet or localhost using any way to make that possible without any physical components (just virtually by simulator)? I've tried many ways such ...
0
votes
2answers
32 views

Is defining a function improves speed rather computing average for each analog input separately

My Arduino controller reads data coming from four different sensors. After the data is read, I individually compute four input average values. I understood that I am having the same lines of code ...
0
votes
1answer
18 views

Load cell weight distribution on rectangular shape instead of square

I have built a simple scale using 4 so called 50kg load cells. They are connected in a bridge and mounted on wooden feet of a square shaped box. All as a proof of concept which worked quite ok. The ...
0
votes
0answers
17 views

expected unqualified-id before ‘if’ Error In My Code [closed]

I'm Trying To Write A Text Based Game With Desishen But The First if { Has The expected unqualified-id before ‘if’ Error Here's The Link To The Code Please Help Me. https://onlinegdb.com/B1l6kSwiIO ...
1
vote
0answers
64 views

Program only works with Serial.begin

My program only works when the following line is added: Serial.begin(9600); When this is disabled/removed the program no longer switches output state regular I'm using an Arduino Mega 2560. When the ...
-1
votes
1answer
39 views

Arduino inspiration device

I seen a video on a instapration device using a e ink screen and a nano, i has the quotes in a array how do I randomize the quotes that show up? and I want to be able to send quotes from my phone
1
vote
0answers
33 views

Sending data to server

I have an SD card have a very big file (1M character). i try to load it into memory in terms of 4K character array ( The maximum I could do using Arduino Mega). but this take almost 250 call to the ...
0
votes
1answer
28 views

Purpose of LED indicator

I am using an arduino mega clone called the Funduino. I am developing a python based, tkinter application that will receive the serial data that arduino sends. However, i am witnessing some behavior ...
-1
votes
0answers
47 views

How can I convert this Arduino code to the C language

I have to turn on an oxygen concentrator on SEGGER Embedded Studio. So, first I tried to do it in Arduino using this code: int Sieve_A_Valve = 3; //small distributor int Sieve_B_Valve = 4; int ...
0
votes
1answer
37 views

Arduino ESP8266 HTTPS Request returning empty response

I want to get some JSON data from a HTTPS secured Webserver using a ESP8266. For some reason I'm getting an empty response, I believe there's an error parsing the GET request. In Chrome I get the JSON ...
0
votes
0answers
27 views

Doesn't stay in sub menu

So hello everyone. I'm creating simple menu with few sub menus,on my lcd screen. But i have run into small problem, i can't stay in my sub menu. When i press select button, it goes into submenu ...
1
vote
0answers
26 views

All AT commands return Fail

I'm trying to send data from sensor to ThingSpeak, but the AT commands always return Fail. They work sometimes and send data. But, most of the time they return fail. My Connections: ESP Arduino Gnd ...
1
vote
1answer
58 views

What component can I use with an Arduino to measure the capacitance of objects? [closed]

What component can I use with an Arduino to measure the capacitance of objects like a glass bottle or a roll of paper?
1
vote
0answers
80 views

Serial Connection - 3.3v to 5V MCU's

After asking How to connect Arduino & ESP8266, I tried to build such circuit. First I tried the code one 2 Nano's - to verify 2 MCU sending and receiving messages. After that, I started to build ...
1
vote
0answers
33 views

How to use pins for I2C that is used from other hardware?

I am using ESP32 CAM for one project and I have a sensor that is I2C connected to pins 21 and 22 (default I2C). The sensor is working fine until I turn on the camera. The camera uses this pins (21,22) ...
1
vote
0answers
42 views

Arduino button voltage versus HIGH/LOW state

I'm measuring voltage between button's ground and input pole on the following sketch. When button is on off state, there's 5V there, when it's switched on and led turs on, there's 0. Is this a correct ...
0
votes
1answer
38 views

non asssign variable using by for in loop() can remeber last value. what happen here?

I modify this code from my friend and it look strange. void setup() { Serial.begin(115200); Serial.println("reset"); } void loop() { for (int d; d <= 32767; d++) { ...
1
vote
1answer
60 views

Making pushbutton behave as a toggle switch with ezButton - do I have to use ledstate with =! operator

I'm using ezbutton to make a pushbutton act like a toggle switch, first press doing permanent on, second press doing permanent off. I'm just trying to understand the basic coding. This project is just ...

15 30 50 per page
1
2 3 4 5
464