All Questions

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

How do I turn off this constant current load circuit with a Arduino gpio?

I need to turn off this constant current circuit with a gpio pin when an event is True. I'm using 6 of these circuits with 3 lm358 op-amps, so turning off the whole chip is not an option. Any ideas?
0
votes
1answer
16 views

Master Reader/Slave Sender with Distance Sensor

I am currently working on a project and want to transmit the information from a distance sensor from one arduino the another, but what i receive in the master board are not the correct measurements. ...
0
votes
1answer
11 views

Nothing received from function returning array of strings

My read function returns an array of strings. i.e ssid and password String* configuration::read() { String rw_ssid = ""; String rw_pswd = ""; const int keys = 2; String read_ssid_pswd ...
0
votes
1answer
17 views

Interleave disassembly + source with avr-objdump

I have a C program for the attiny85, that I want to disassemble and display with interleaved source code. Here's my program: test.c #include <avr/io.h> int main() { for(int i=0; i<100; ...
2
votes
1answer
71 views

Use ISRs inside a library more elegantly

At the moment I try to make a library which uses attachInterrupt(?,?,RISING) to read a sensor. The article of Nick Gammon on Calling an ISR from a class helped me a lot, but his "Glue routines" get ...
0
votes
0answers
24 views

Blink doesn't work on pin D3,D4 and D0 but works on D7

I am facing a strange issue. I am trying to blink an external LED using Wemos D1 mini V2 board. But it is not working. My sketch is as below. int LED = D3; void setup() { pinMode(LED, OUTPUT); } ...
0
votes
1answer
22 views

EEPROM not consistent over reboot

I'am using a Wemos D1 mini V3.0.0 (esp 8266 core). I tried to save a structure in EEPROM memory but all data are lost when i reboot the board. I am using these basics functions : int cle_verif = ...
0
votes
0answers
10 views

Debugging RN 42 HID Mouse

I'm trying to use the RN 42 and Arduino Uno to control a bluetooth mouse. I configured the RN 42 with the commands S~,6 and SH,0220 and R,1 to put the device in HID mouse mode. Is there anything I ...
-1
votes
1answer
32 views

Resonator vs crystal [closed]

As I understand resonators are not as stable as crystals when it comes to temperature, degradation with time, inherent ability to maintain the same frequency. I am looking at battery use, temperature ...
0
votes
0answers
25 views

How can I have muliple timers in a single arduino? [closed]

I'm working a 18650 charger and capacity tester. My goal is charge and discharge 6 cells independently, which means when discharging my Arduino will have to take care of 6 different timers. Any ideas?
1
vote
1answer
27 views

Arduino UARTS Auto addressing slaves

i'm using this serial topology to connect my STM32F1 slaves together to a master ESP32. They are in total 10 STM32F1 slaves and one master: With this type of wiring i'm sure that only one slave per ...
-1
votes
0answers
25 views

How to measure voltage of a battery while it is in battery is in use? [closed]

I'm measuring the capacity of my 18650 cells with a constant current load. The problem I'm facing is I cant measure battery voltage while it is loaded. I need the voltage to be precise for Arduino to ...
0
votes
3answers
57 views

the use of the Arduino's EEPROM

I want to know the purpose of using the EEPROM because I can't get it, I mean I know that it can store values for a long time, but I just can't get the goal here #include<EEPROM.h> void setup() ...
0
votes
1answer
24 views

How to run atmega328p at 8, 4 and 1 mhz?

Instead of using the regular Arduino board I have purchased the atmega328p-pu along with this components: 22pf ceramic capacitor 10K resistor 16mhz crystal 47uF capacitor 3.3 Volts Power supply The ...
0
votes
1answer
24 views

Arduino Uno CTC mode interrupt is not tiggering

I am trying to generate LED blink after 4 second using Interrupt but Interrupt is not triggering not even once . Request: if you have arduino uno r3 please check at your end and let me know result. I ...
0
votes
0answers
21 views

Snake head in snake game always diagonal to rest of body

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I have made my program using object orientated programming. ...
0
votes
0answers
24 views

counter not working [closed]

//////Reverse case /// /// Required if order 1 occour once count give orger 4 int sw1 = 2; int sw2 = 3; int sw3 = 4; int sw4 = 5; int relay1 = 6; int relay2 = 7; int relay3 = 8; int relay4 = 9; ...
0
votes
1answer
19 views

USB disconnects when using a capacitor

I'm currently working with some WS2812B LEDs and tried out adding a capacitor to be safe from voltage spikes (was recommended by Adafruit). I noticed that a soon as I connect a capacitor between 5V ...
0
votes
0answers
17 views

Why I stop getting new GPS data when writing into micro SD card using ESP32?

I am writing an ESP32 based navigation system for quadcopters. It is composed by a MPU9250 inertial sensor, an u-blox NEO-6M GPS module and this SD Card module. I tested the three modules ...
0
votes
0answers
20 views

Sensors for four-legged robot [closed]

I've to make a four-legged robot that can avoid obstacles and reach a goal. For the electronics part, I'm using one Arduino Mega 2560 and 12 servo motors ( 3 for each leg ). But I'm confused about ...
0
votes
1answer
33 views

Trying to draw a bitmap to an LED matrix only draws the left half

I'm EXTREMELY new to Arduino and fairly new to programming as a whole, but I thought it would be fun to try and write a program that draws arbitrary 1-bit bitmaps to an LED matrix using the Adafruit ...
0
votes
0answers
13 views

LCD1602A displaying blocks

I am having an issue with the LCD1602A and Arduino Uno. I have followed a tutorial on youtube that has got the device working, however the LCD is only displaying white blocks in all 16 segments of the ...
0
votes
0answers
25 views

please help me with my code [closed]

i wrote this code but it give me this error: storage size isn't know Arduino:1.8.12 (Windows Store 1.8.33.0) (Windows 10), Scheda:"Arduino Uno" C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8....
0
votes
0answers
21 views

Why am I getting erratic Analog.read() readings?

Im trying to make an arduino controlled PWM fan using a potentiometer. Ive connected the circuit as in the diagram below (The transistor is a TIP120 if it's hard to read): Here is my code: int fan = ...
0
votes
0answers
14 views

Time synchronization of GPS based Wireless Network

I am working on an ARDUINO based wireless network. In this network, each node or device is having its own GPS module. Each GPS module has to get location data and have to send to a single base-station....
0
votes
1answer
25 views

How do I use a SMD crystal with 4 pins?

I am running my arduino project with the atmega328 chip like this: I have purchased by mistake this crystal: The reason why I purchased by mistake that crystal was because it has this description: ...
0
votes
0answers
25 views

How can i connect 01 ESP8266 to a shift register?

I am connecting this shift register to my esp8266 01 for more GPIO options. it appears there is a GPIO 16 but it's tied to a RESET pin. I checked both datasheets : i checked the esp8266 01 datasheet ...
0
votes
1answer
27 views

Placing decoupling capacitors when building an Arduino PCB with Atmega328-PU

I have previously asked this question: Custom build of arduino on a pcb And thanks to the answer by Majenco I have learned that my circuit works a lot better when adding a capacitor. For example I ...
0
votes
0answers
36 views

Button example: resistor vs wire

I am playing with this basic example: Arduino: Button There're a lot of existing questions about why to connect button to the ground. I get the idea more or less. Is done to avoid "noise" during ...
0
votes
1answer
23 views

Issues with reading numbers from serial port

I've built 2 motor drivers for a robotics project and need to set positions that I want the motors to move to, and read that using the arduino. The arduino then uses a rotary encoder to implement a ...
0
votes
0answers
18 views

cannot find esp8266 via boardmanager

i'm using arduino ide 1.8.12 opened preferences window and did enter http://arduino.esp8266.com/stable/package_esp8266com_index.json, https://arduino.esp8266.com/stable/package_esp8266com_index.json ...
0
votes
0answers
20 views

How can i send data to phpmyadmin database? using esp8266 nodemcu and max30100

i want to send data from my sensor to database phpmyadmin. but i only get zero values. please help me thank you. void loop() { pox.update(); BPM = pox.getHeartRate(); SpO2 = pox.getSpO2(); // ...
0
votes
0answers
21 views

LED goes off in nodemcu If I turn on other LED

I developed an android app to control a robot using nodemcu. I have added some buttons to on/off or blink some LEDs. It works fine but, if I on the one LED or drive the robot, the other LEDs goes off. ...
-1
votes
1answer
27 views

Vary the Speed of Motor

I am trying to control the speed of motor through VFD using 4-20mA signal. I generate the 4-20mA signal using Arduino.I use low pas filter to obtain the voltages from Arduino PWM pins as shown in the ...
0
votes
1answer
24 views

How to calibrate Mpu6050 using library?

I am using i2cdev library Code:(i did not know this code is correct or not) #include <Arduino.h> #include <MPU6050.h> #include <kalman.h> #include <stdint.h> #define ...
0
votes
1answer
26 views

Writing to flash memory fails with Optiboot

I am having some issue writing to flash memory on Arduino Uno. I burned the optiboot bootloader that ships with the IDE 1.8.3 to the chip, then uploaded the test_dospm sketch to write content to ...
0
votes
0answers
17 views

Trying to show g++ (linter-gcc for Atom) where to find Arduino libs

I'm trying to use Atom as an IDE for arduino and arduino-based boards. I'm using arduino-cli for compilation and avrdude for upload, and now I'm trying to use linter-gcc for linting. g++ is running ...
0
votes
2answers
36 views

How can arduino read a frequency higher than 16Mhz?

I will like to understand how does Arduino measure a frequency. Also how does my voltmeter can measure a frequency as well. Since I am a beginner on using microcontroler I would read a frequency like ...
0
votes
0answers
25 views

Detecting a finger snap(basically trying to replicate infinity gauntlet)

I am trying to make an infinity gauntlet. So it's obvious it should have a snap feature(which will switch of a light,motor or whatever). But I don't know how to go about sense this snap. I thought of ...
0
votes
0answers
15 views

antenna of the HC-06 bluetooth module

Does the Bluetooth module HC-06 contains a built in antenna similar to HC-05 ? and if so, then what is the benefit from using antenna?
2
votes
2answers
137 views

Calculating Amp/Hrs of a solar panel

I am interested in calculating the amp/hour output of a solar panel using an Arduino. I am confident I can get the voltage (with a voltage divider) & the amperage (with an ACS712). My question is ...
0
votes
0answers
53 views

Arduino serial coming up with weird characters

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I am wanting to program my program using object orientated ...
0
votes
0answers
25 views

Periodic noise on ESP32 ADC

I've got an Adafruit HUZZAH32 ESP32 feather board connected to my PC via USB and I'm trying to read from a voltage divider at ADC1 channel 0, powered by the 3V pin. For troubleshooting, I'm using two ...
0
votes
1answer
21 views

Bluetooth: sync time from an NTP server via Internet connection shared with Android phone

I saw that it is possible to sync time from an NTP server over WiFi. I have the HC-06 Bluetooth module and an Android phone that can share its Internet connection with Arduino via Bluetooth. Would it ...
1
vote
1answer
53 views

I am trying to read input from 5th PIN of PORT B?

In a nutshell i want to read a PORTB 5th pin without using digitalRead API ( i am trying to learn baremetal using arduino-uno-r3) Just to Learn How internal register works i did not used digitalRead ...
0
votes
2answers
47 views

Bike Gear Indicator Coding Problem

Lack of practice I forgot many function of C & C++... Can anyone help me with this coding Please... I think this is The Main coding: Topic: Gear indicator I first found this, Gear_Indicator_Raw ...
0
votes
0answers
23 views

Unable to initialize SD card

I am not able to initialize the SD card. Can't find figure out what the issue is. It fails at the condition if (!SD.begin(D8)) { Serial.println("initialization failed!"); return; } I am using D1 ...
0
votes
0answers
23 views

problem about changing colors of rgb led [closed]

i bought REES52 arduino kit,i got a rgb led in it.i don't how to connect it in common anode or common cathode.i first connected to common anode,I found the RGB led hasn't worked.I now connected it to ...
1
vote
0answers
31 views

I'm trying to control the ESC using remotexy, esp8266 and arduino mega but I think there is a problem with the PWM signal in the slider. Please help [closed]

{ define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT include // RemoteXY connection settings define REMOTEXY_SERIAL Serial3 define REMOTEXY_SERIAL_SPEED 115200 define REMOTEXY_WIFI_SSID "RemoteXY" ...
0
votes
0answers
36 views

Get data from bicycle [closed]

I am a software engineer who has almost no experience with hardware. I am trying to understand what sensors I would need in order to get the following data from a bicycle that I could then use in some ...

15 30 50 per page
1
2 3 4 5
415