Most Popular

1500 questions
4
votes
2 answers

Trying to resolve invalid conversion from 'byte' {aka 'unsigned char'} to

I'm trying to use an existing Arduino library on the Raspberry Pi Pico. The library is here: https://github.com/j-bellavance/EdgeDebounce/tree/master It's based on some interesting insight at Jack Ganssel's…
Jeff Haas
  • 43
  • 5
4
votes
1 answer

Why does timer ISR not execute?

This is my code which I have written as a library #include "avr/interrupt.h" #include "Arduino.h" #include "AllTimer.h" AllTimer::AllTimer() {} void AllTimer::dofun(void) { //TIFR1 |= _BV(OCF1A); TCCR1B = 0X00; //TIFR1 = 0X01; …
explorer
  • 379
  • 2
  • 5
  • 17
4
votes
2 answers

How to get around passing a variable into an ISR

Okay so you aren't able to pass a variable into in ISR. This is causing problems for me. I'm using a rotary encoder, and I need it to be connected to an interrupt pin and running a ISR. When using this method, no pulses are ever skipped and the knob…
AJ_Smoothie
  • 456
  • 4
  • 12
4
votes
1 answer

Connecting nRF24L01 to ATmega328PU with external 8 MHz crystal problem

I am trying to fix the problem of communicating between two nRF24L01+ together, one connected to an Arduino Uno and another connected to an ATmega328PU with an 8 MHz external crystal. The bootloader on the ATmega328PU is “Arduino Pro or Pro Mini”…
Jon depoy
  • 61
  • 3
4
votes
1 answer

Are intel hex files converted into a binary format before they are written to Atmega's flash?

I have been going through some resources on bootloaders, programmers, etc (I'm very new to this specific subject) and how they work with the Atmega chips and Arduino board programming. My research may have been shallow but none of the online…
First User
  • 191
  • 2
4
votes
3 answers

Possible to store variables directly in EEPROM?

Is it possible to store a variable directly in EEPROM and retrieve it without needing to use a library? I'm building a project that can change the colour of an RGB LED and I want to store the colour in a non-volatile memory space, but I was…
Raceimaztion
  • 151
  • 1
  • 4
4
votes
1 answer

How do you take the simplest continuous reading from a Garmin Lidar Lite V4 using I2C on a Particle Boron v4.1.0?

Hey there Stack community. I'm working with the Particle Boron v4.1.0. I'm connecting a Garmin Lidar Lite V4 on I2C. I'm using the LIDARLite_v4LED.h header file found in the library given for this device, "LIDAR-Lite" and my goal here is to op-check…
4
votes
1 answer

Issues using mini microphone module off AliExpress

I have been trying to get a mini microphone module with an inbuilt microphone module I got from AliExpress to my Arduino to confirm if it is working. It was a four pin microphone with pins labeled V, L, and two G pins. The V represents voltage in…
4
votes
0 answers

Problem with reading data from ELM327

The idea was to create a bluetooth device on the arduino to read data from the machine (ELM327 v2.1) using the HC-05 bluetooth module. In this code the bluetooth module is switched to MASTER mode and connected to ELM327 using its MAC address. The…
gfd2
  • 141
  • 2
4
votes
0 answers

Can I use regular pins (Example: D2, A3, etc...) as serial (RX, TX)?

Python/Arduino Beginner here... I have a DFplayer I am trying to hook to my Arduino and I want to hook it up through the regular pins instead of the RX and TX pins, but I've not been able to find detailed information on if I can do that and how to…
4
votes
2 answers

Arduino unable to read 0x41 and 0x42 (reads others just fine (ICT bill acceptor)

Here is my issue: My code successfully recognizes and accepts $1 (0x40) and $20 bills (0x43), but it fails to recognize, display, process, anything for the $5 bill (0x41), and $10 bills (0x42). Also, when I say "Arduino", I mean TTGO btw... I have…
4
votes
0 answers

Turn ESP8266 into an Arduino IDE-like "sketch uploader" (over hardware serial)

I have an ESP8266 module which has downloaded a hex file for an Arduino Mega2560. This hex file (call it mega2560.hex) is sitting in the ESP's SPIFFS file system. What I want to do is basically emulate the behavior of the Arduino IDE when we press…
First User
  • 191
  • 2
4
votes
1 answer

MacBook + BLE Microcontroller Incompatibility?

I've programmed an Adafruit Feather nRF52840 board to send MIDI signals to my computer via BLE. I can confirm that the board pairs successfully with an Android phone and a Windows PC, but my laptop (MacBook Pro 2021) will not recognize the board; it…
carsoap
  • 41
  • 2
4
votes
1 answer

Analogue input spikes

i have a project where i read two analogue inputs from two sensors and a pro Mini. I have some spikes in my readings that are present when i'm powering the system using a powerbank step-up module. When i use a 7805 and a 9V battery, the results seem…
stelPet
  • 41
  • 3
4
votes
2 answers

How to change the I2C address of the AS5048B?

I saw this video from James Bruton. See the links to the GitHub repos in the video description. I bought a few AS5048B boards from AMS, so I can measure the position of my stepper motors. In the sosandroid repo, I ran program_address and was able to…
John Doe
  • 151
  • 5