Hello,
im currently developing universal RC controller for my family (they are building RC tanks as a hobby) on Arduino Uno.
Currently i have completed whole movement section so i wanted to add some sounds to make it real. For this purpose I have SD card reader and theres the problem.
The sound should be continuous. But after this the pulseIn value from receiver dropped significantly. For example( from 1500 to 900 and its unstable (sometimes droppes to zero);
By troubleshooting it seems to be a problem with continuous playing of sound. For troubleshooting i unplugged everything so currently is connected only SD reader( Micro SD TF Card Memory Shield Module - ElectroPeak ) and RC receiver ( https://www.hobbywarehouse.com.au/flysky-fs-ia6b-receiver.html ).
RC receiver is currently only using VCC GND and one pin on Arduino.
Any help is welcomed ![]()
For testing purposes the code is very simple:
#include <SD.h>
#include <TMRpcm.h>
#include <SPI.h>
TMRpcm audio;
#define SD_ChipSelectPin 2
void setup(){
Serial.begin(9600);
pinMode(4, INPUT);
audio.speakerPin=9;
if(!SD.begin(SD_ChipSelectPin))
{
Serial.println("SD fail");
return;
}
audio.setVolume(2);
audio.play("Es03.wav");
}
void loop(){
int ch = pulseIn(4, HIGH, 30000);
Serial.println(ch);
}