Search found 143 matches

Hi John, Your welcome. Gald the issues have been solved. I have changed the title to reflect this. I was looking around the forum and I found a issue with the Compiler. In windows 10 you need to set Flowcode to Administrator. I did that and Flowcode worked. Yes, it shows you that in the last link I ...

Hi John, What a cool (or should that be ghoul?) project.... There are many ways to achieve what you want - depending on how 'random' you want the ghosts to be: A few suggestions: 1) If the ghosts are 'started' by a sensor - then use a timer / counter and look at the value when the person trips the s...

Really nice to hear from you on my newest project Thanks John, Happy to help Would I not be in the same pickle with the timer ? I don't believe it would be the same pickle at all! Both interrupts are placed at the start so are only ever enabled once. Add a timer2 interrupt and set the properties fo...

As the seconds continuously count up (or you could have it to count down) in the background, you can have the seconds displayed live.Just within the main loop place a LCD print number macro for the seconds.best to place a 100ms delay also within the main loop so LCD is not being updated too fast.

I have made a fair few changes. You definitely don't require 2 timer interrupts. I only had timer2 in mind as the timing is much more accurate than timer0 Should work on hardware better than simulation. At all times you should see on the display exactly how many seconds are left including the 10 &am...

Glad it works like a charm. In my Main at the start is there a cleaner way to reset the PortC and Port A Yes just output 255 to the Entire port rather than 1 to a Single Bit . Just select each bit that has to be at 5V. Make sure any other bits that you don't want to be at 5V are not selected. I see ...

Hi John, DFPlayer can work from about 3.2 to 5V. The Resistor goes from MCU TX to DFPlayer RX All makes of SD cards i have tried seem to work I'm currently using 16G Scandisk There are two ways of placing the files on the SD card. 1 which is the best way: Make a folder called MP3 on the root of sd c...

Hi John, Attached are mp3 files for testing that will count from one to ten and back down again. It's using command 0x12. For some silly reason that is the main command for playing a track number, but was left off the data sheet. What you can see on the datasheet is 0x03. that is Play FAT file numbe...

Hi John To make a track 3 play for example: Commands = 0x12 CommandFeedback = 0 Parameter1HighByte = 0 //Track number HB Parameter2LowByte = 3 //Track number LB You may find it easer if using decimal instead of hex. If you want to play a track number less then 255 then keep Parameter1HighByte at 0 P...

Hi John, Whenever you create a new project, ALWAYS connect an LED via a resistor with Loop: LED on, 1sec, LED off, sec. You must make sure the LED is flashing at the correct rate. If with your project RS232 is not at the correct baud rate because osc at running at wrong speed, then project will not ...

Hi John, Not a problem The osccon registor within a c code block sets the internal osc speed. You have got that C code block disabled. You are showing nothing connected to MCLR pin, yet that is enabled within configuration settings. If you have not got anything connected to MCLR pin, then it must be...

Martin are you indicating on the "little as possible" for interupts that If I use (B0) as my button trigger I can't use pins (B1-B7) for any action ? Yes you can but within the interrupt set a variable depending on what button is pressed. You can have inputs which won't cause any issues t...

Hi John, Have you done a one second flash test to see if everything is set up correctly? If so will be surprised if delays are correct as you still got osccon statement commented out. If the delays are way out then the 1 - 2 ms required for servo will be wrong causing access current and servo to bur...

I didn't know about the Button bounce protection. I use to use the Button properties That is only when you use The switch component macros i.e. ReadState, WaitUntilHigh & WaitUntilLow. As they are not used within interrupt, then debouncing will be required. ? Not sure how to do a "one seco...

Sounds to me like a hardware issue. Could be the power supply not up to the job. The way to find out is scope the servo signal line with servo disconnected. If it's steady at say 1.5ms every 20ms then is not software. With servo connected and playing up, scope power supply line. You may have to set ...

Hi John, If you look a the DFPlayer datasheet, it will state that all commands start by sending 0x7E. If you look at your flowchart, within SendBytes macro the send 0x7E has been changed to Receive and 0x7E you supposed to be sending is being used as the Timeout. You need to change it back! Same wit...

Hi John, The high and low number is just a 16bit integer number that has been spilt into two bytes! Track number (integer) HighByte LowByte 1 0 1 2 0 2 3 0 3 ... 255 0 255 256 1 0 257 1 1 If the track you are interested in is track 4 just use: Commands = 0x12 CommandFeedback = 0x00 Parameter1HighByt...