Most Popular

1500 questions
4
votes
2 answers

Bluetooth communication not working with DC power but works with USB power?

I am running an HM-10 Bluetooth Low Energy (BLE) module to transmit serial data (using SoftwareSerial) from an analog sensor onboard my Arduino Uno to a serial terminal app on my Android phone. When I power the Arduino with a USB power bank, the…
AggroCrag
  • 161
  • 4
4
votes
2 answers

Image Breakdown

I've been trying to figure out a way to store an image on the Arduino, and I couldn't figure it out. What I've been trying to do with this image is the following: Test that the arduino has the image by displaying on a touchscreen (I have the…
4
votes
1 answer

SoftwareSerial too slow for MIDI?

I tried to use the SoftwareSerial library for MIDI (by 47 effects), but it seems I get regularly corrupted/unexpected messages. The circuit I'm using works perfectly when I connect it with the HardwareSerial solution (so the problem must lay in…
Michel Keijzers
  • 13,014
  • 7
  • 41
  • 58
4
votes
1 answer

Disable Reset when Com Port Connected/Disconnected

I've noticed that when I open and close the com port my Arduino is connected to, the device resets. This makes the program run the setup profile again and it loses the previous variable states. Is there any way to prevent this?
ATE-ENGE
  • 941
  • 3
  • 19
  • 32
4
votes
2 answers

Data logging speed with arduino

I am trying to make some data logging conserining physiological data coming from a bitalino. My problem is that I would like to collect samples at something like 1 kHz, that is the rate that the bitalino can read the sensors, but I think that the…
arduinoFan
  • 87
  • 1
  • 6
4
votes
1 answer

Does ATMega 328/2560 chips support JTAG-type programmer and hardware debugger?

As stated in www.Arduino.cc FAQ, "Can I use an Arduino board without the Arduino software? Sure. It's just an AVR development board, you can use straight AVR C or C++ (with avr-gcc and avrdude or AVR Studio) to program it." For UNO/Pro…
EEd
  • 904
  • 1
  • 14
  • 21
4
votes
4 answers

Is it possible to save different values on address 0 and 1 in EEPROM?

I want to save different values on address 0 and 1 on eeprom I tried to change it but when I put data on address 0 and also put data on address 1 the address 0 change its value stored into random number and vice versa .. Is it possible to change the…
kaisar Great
  • 111
  • 2
  • 5
  • 11
4
votes
1 answer

NRF24L01 only receiving zeros

I'm attempting to transmit very simple data across some NRF24l01 modules for testing purposes, and I've been following a YouTube guide. Here is my code: Trasmitter: #include "RF24.h" #include RF24 Radio (7, 8); byte address[][6] =…
Wilson
  • 41
  • 3
4
votes
2 answers

incompatible types in assignment of 'int*' to 'int [0]'

I was coding a class for "a kind of gun". I have this code for the classes: Gun.h: #ifndef Gun_h #define Gun_h #include "Arduino.h" class Gun { public: Gun(String identifier, String name, int teamIRCodes[]); String getIdentifier(); …
Arnyminer Z
  • 197
  • 1
  • 2
  • 8
4
votes
1 answer

Generate 1.7 Mhz with PWM in Uno?

I have this code: void setup() { pinMode(11, OUTPUT); TCCR2B = 0; TCNT2 = 0; TCCR2A = _BV(WGM21); TCCR2A |= _BV(COM2A0); OCR2A = 249; } void loop() { soundBuzzer(); } void soundBuzzer() { TCCR2B |= _BV(CS21); } void…
Hackeitos
  • 41
  • 1
  • 3
4
votes
3 answers

Transistor amplifier to drive speaker using Arduino PWM

I have been working on a project lately which uses Arduino to play a wav file from SD card. I am using TMRPCM library which made the job very easy. But the problem is that the output sound in the speaker is very low. I am using the below single…
Frank Donald
  • 191
  • 1
  • 2
  • 9
4
votes
4 answers

Can I change VCC pin to 3.3V on a 5V Arduino Pro Micro?

I'm using a 5V Arduino Pro Micro (schematic). For my project, I'm using the VCC pin to output power to an external device. I need VCC to output 3.3V to the external device. Can I open jumper SJ1 to reduce the voltage of the VCC pin without…
Mark Harrison
  • 559
  • 3
  • 14
  • 23
4
votes
1 answer

Need to set an output pin without it going LOW during initalization

For a control system I am using a relay module that controls a larger relay for high-current electrical stuff, as part of a battery protection circuit for my solar plant. This module switches 120 VAC for the larger one. The larger one is set up to…
SDsolar
  • 1,175
  • 3
  • 11
  • 35
4
votes
3 answers

Moving wiring.c functions from timer0 to timer1

I am using an Arduino Leonardo (ATmega32U4) and need to use timer0 for PWM. Since by default in the wiring.c file the functions micros() and millis() use timer0, I decided that, since timer1 isn't being used, I could set up timer1 exactly how timer0…
4
votes
1 answer

Advanced Arduino Project Help

So, I am an Engineer working on a very time tight project. I want to create a system capable of collecting data from a Photodiode and compiling it in a way that will separate data into four columns which correspond to colours (red, green, blue,…