Open fire-bot opened 2 months ago
Hi Peter, First quick review You've created a DFPLAYER vpin 10000 on serial1 but are trying to use vpin 1000 as in SET(1000) // this should be SET(10000) and SET(10001) and RESET(10000)
and what are the SET pins 40 42 44 ?
Also be sure your DFPlayer Tx Rx are crossed to Rx1 Tx1 on the Mega
The filename should be myHal.cpp
Perhaps check to see that it is working by sending a few commands from the serial monitor. Then develop what you want in myAutomation.h https://dcc-ex.com/reference/developers/hal-config.html#checking-the-driver
Hi Guys,
Thanks for the reply,
I now have setup a clean CommandStation 5 with only the DFPlayer (pin18-19) and a sensor (pin40) attached a made certain I have addressed the right pins. I only modified the myHal and myAutomation file (see attachment). But with no result, the DFPlayer mini wil not connect. Whatever I try I get: < DFPlayer device not responding on serial port >. When I enter the
Regards,
Peter
Sent by (dccextended@gmail.com). Created by fire.
Peter created a ticket
Name: Peter Ubels
Email: pu@karla-ubels.nl
Timezone: 1
Software: EX-CommandStation
Version: 4.0.x
Title: DFPlayer mini in EX-RAIL not found
Description: Hi there, I am working with DCC-EX V5 and EX-RAIL and I'm enjoying it (love your work). At the moment I would like to add some sounds and I followed the manual (https://dcc-ex.com/reference/developers/hal-config.html#adding-a-new-device) and added a DFPlayer mini but it wil not connect. Whatever I try I get: < DFPlayer device not responding on serial port >. I could not get my hand on an original DFPlayer mini but got several MP3-TF-16P's. All example sketches I upload to the MEGA for this player work so the ports and player do work. I'm using a MEGA 2560 wifi and tried al three serial ports (14-15, 16-17, 18-19) with changing the command in myHal.h accordingly DFPlayer::create(10000, 8, Serial1,2,3) but with no result. My C++ skills are not good enough to find tghe error, please advice. Thanks in advance and regards, Peter
Remaining email Quota: 100
Attachments: