I have to wait exactly the amount of delay time I set before the DFplayer starts and it doesn't even deliver a full song. 3).DH 0x00 DL 0x0F, 15 is converted to hexadecimal. Hi, I'm using PIC16F887 to play music with DFplayer, I could make the DFplayer play short mp3 of length 5 seconds or so by setting delay_ms(5000) but for a full song I would have to, theoretically, set the delay time to match its length. For example, specify the volume to 15, serial port to send commands: 7E FF 06 06 00 00 0F FF D5 EF. Please do not post bug reports on this forum. The files to play can be put on the Vortex via usb, seems the little switch next to the micro-usb socket switches this between the mp3-players mass-storage and the arduino usb-serial interface.CCS :: View topic - DFPlayer using PIC16F887įAQ Forum Help Official CCS Support Search Register Profile Log in to check your private messages Log inĬCS does not monitor this forum on a regular basis. Data pin that led data will be written out over ![]() Note that 2x 8µs delay doesn't give you 38kHz, but the digitalWrite itself also induces quite some delay (3-6µs), so seems this is bringing the total period up to around the 26.something µs we'd expect. This receiver seems to work at 38kHz, but probabbly also reacts to 36-40kHz. Also, the IR sensor is useful to read IR remote controllers or beacons. IR example below uses some of the LED functionality. PinMode(M1, OUTPUT) // directional controls, High is forward, Low is backward This example revs up the engines with PWM. The first time you use these can be confusing. I wrote about it here and included some info about using it with several processors, including our beloved BS2. NextGen XCTU always indicates the V messages. Traditional XCTU terminal correctly indicates the sent and received messages. I just double checked and it does that both under XP and Linux. When I enter the message in the NextGen frame interperter, it insists on changing the 49 to 40. Simple 'enable' and 'direction' pins for left and right wheels. 16:28 I haven't used this specific MP3 player module, but I have used the YX5300, which is likely similar. The reply received is 7E 0007 88 04 00 00 49 53 01 D6. (The app might also be initializing other things, but this seems to work)īut using avrdude to upload the. I2c bus + Vcc & Gnd should be available at 4 pin rear expansion port too - need to find a suitable connector for it.Īlthough you can/should be able to reflash Vortex with the App, might as well make a backup of the orignal:Īvrdude -c arduino -p m328p -P /dev/ttyACM0 -U flash:r:"Vortex.hex":iĪvrdude -c arduino -p m328p -P /dev/ttyACM0 -U flash:w:"Vortex.hex":i The APDU Command should be FF 00 00 00 09 D4 4A 01 01 00 FF FF 01 00. Motor 0 direction (H=forwards,L=reverse) (output) Identifies the slot number for this command. Unknown, seems to be pulled high when used as input. ![]() The number is 6 bytes, and these 6 bytes are FF 06. What's connected to the pins Connection overviewĮncoder Wheel (External Interrupt 0) (input)Įncoder Wheel (External Interrupt 1) (input) For example, if we specify playback of SD card, we need to send the command 7E FF 06 09 00 00 02 FF F0 EF. (Chinese page seems to have a bit better documentation, although English page might be easier to read and it is interesting to compare the differences) The examples-coding is mostly done by "Andy Zhou ", although I did change some of the things to figure out what they do. ![]() Examples Set the line idle code to 0x7E on interface E1 2/0. These examples might disappear, so duplicating them here, with my own notes as available. The line idle code is sent in timeslots that are not bundled with logical channels. Unfortunately, not all the specs seem to be available, but there are some examples to work with, although they have a quite a bit of 'magic numbers' in them. when the module receives a command to play the track 0001.mp3, it will play the 1st track you copied. grouping ID 00, status 0 (Disabled) 98: FRU 2 (AMC 6) Channel 0: Link 1. Luckily, the internal Arduino clone can be directly programmed too. clia activate 9c 0 Pigeon Point Shelf Manager Command Line Interpreter. The WhenDo app is only available on iPad. Basic programming via the official apps is possible, but rather limited.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |