Search found 537 matches

by JLeith
Mon Feb 25, 2019 9:36 pm
Forum: Flowcode V6
Topic: DFPlayer Bug
Replies: 12
Views: 8302

DFPlayer Bug

Hello All Working on a new Christmas train design with a audio file playing when a train enters the station Using a DFPlayer Mini and a Speaker I have it running on a Pic16F1983 but it is not working. So I have gone back to basic with just the DFPlayer Using the DFPlayer Mini with the ADKEY1 activat...
by JLeith
Sat Feb 02, 2019 7:17 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin Just noticed a servo question in the forum from Benj This Forum message is in Flowcode 7 is this maybe the same issue in Flowcode 6 ? Post by Benj » Wed Apr 25, 2018 9:54 am Hello Enrique, The Servo component requires 2 PWM channels to allow the Servo output to be generated. The 16F819 onl...
by JLeith
Sat Feb 02, 2019 7:07 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin For some reason the PWM keeps the Signal going out and the servo is trying to follow the beat. Defiantly PWM is not working the same in Flowcode as in the PIC design. I noticed when I restart the program the PWM is at logic 0 level and once I ask the PWM to send out a 125 or 90 or 25 is se...
by JLeith
Sat Feb 02, 2019 6:47 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin

It looks like the PWM is sending a pulse value on/off when I monitor the PWM without the Servo.
PWM.png
(4.18 KiB) Downloaded 4068 times
That must be what the Servo is seeing.

Is there a way in PWM only to send and stop ?

John
by JLeith
Sat Feb 02, 2019 5:40 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin I have tried 3 Servo and they all do the same action. The drawing on post ( Thu Jan 31, 2019 3:29 pm ) is with the Servo disconnected. I used a Trigger on my digital scope ( UTD2052CEX) now I can't get the trigger to stop and go to live. More work on the scope. The power supply is one I ha...
by JLeith
Fri Feb 01, 2019 11:02 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin I noticed once the Servo is going back a forth the PIC stops running the script. The Button is ignored and I have to reload the flowcode. I even copied the Flowcode Single Motor that uses the pot to determine the action of the servo. Just set the "IN: value to 125 or 0 and it still runs ba...
by JLeith
Fri Feb 01, 2019 10:40 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Try two more Servo and they do the same action

Here is the current Flowcode.
by JLeith
Fri Feb 01, 2019 10:06 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

I put the action Enable Servo in a separate macro and it flips back and forth
by JLeith
Fri Feb 01, 2019 9:27 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin

Missed the link to second flash test, Printed it off for future knowledge

For the Servo I will retest. Do you know of a test for the servo by it self.

I will send a video of the action

John
by JLeith
Fri Feb 01, 2019 12:38 am
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin
The A1 pulse works and the Button activates

The servo not so much.

Its like the servo dosen't have a home position and jumps back a forward ?

John
by JLeith
Fri Feb 01, 2019 12:31 am
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Here is the cleaned up flowcode

John
by JLeith
Fri Feb 01, 2019 12:29 am
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Thank you Martin I follow the double loop for the flashing of the led. I didn't know about the Button bounce protection. I use to use the Button properties I cleaned up my LCD messages. Have you done a one second flash test to see if everything is set up correctly? ? Not sure how to do a "one second...
by JLeith
Thu Jan 31, 2019 8:49 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Here is where I see the Value of DISP=2

Picture
by JLeith
Thu Jan 31, 2019 8:39 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Martin a further note

If I connect the servo it pulse a couple of times and then the LCD flashes like the Servo is killing the power source

John
by JLeith
Thu Jan 31, 2019 8:31 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hi Martin I changed the Interrupt to DISP=1 so when the Button on B1 triggers the action should work ? In flowcode it works. In Breadboard it does not work ??? I have my digital scope on Trigger action on B1 and it does not activate. Only activates when I press B1. Well in the breadboard My LCD says...
by JLeith
Tue Jan 29, 2019 6:01 pm
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Hello Martin Thank you for the info. On the MCLR I have a 10K resistor connected to +5 for the PICkit 2 access. So the MCLR is held to logic 1 For the C code I forgot to enable while I was frustrating finding out why my leds would activate as in the flowcode Where interrupts are concerned you have t...
by JLeith
Sun Jan 27, 2019 1:28 am
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Re: Servo Issue

Thank you Martin I must have looked at the PIC 7 times and only confirmed the 1638 Martin Back in the day you indicted I should use a Led as a flashing indicator ? I have this in my design and it doesn't work as I think it should I have a loop In Main for RA2 and it won't light in the breadboard ? I...
by JLeith
Thu Jan 24, 2019 12:39 am
Forum: Flowcode V6
Topic: Servo Issue
Replies: 25
Views: 14093

Servo Issue

Hello all Need some wisdom ASAP. I have a working Flowcode project but it will not load into my PIC16F1938 I have about 12 hrs from Jun 23 3:29 PST My gradson was going to us the Servo to dispense Candy like a vending machine. The design looked simple and works in flowcode perfect. Press the button ...
by JLeith
Wed Nov 21, 2018 6:25 am
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Hello Martin

Thank you for your help.
Thank you.png
(54.42 KiB) Downloaded 5207 times
John
by JLeith
Tue Nov 20, 2018 8:42 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Question
Can we send a msg to put the DFplayer in a busy state that will turn on the led on the DFplayer.

The Led comes on when the OI1 is activated.

John
by JLeith
Tue Nov 20, 2018 8:34 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Hi Martin I did what you indicated for the VCC I connected the DFPlayer to the 5V supply of the PIC. No changes in my program. I converted your Count Program. The count program runs in Flowcode but not on the PIC. I have the count set to display on the LCD. The PIC LCD displays 1. Hello 2 then nothi...
by JLeith
Tue Nov 20, 2018 6:54 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

I have converted to 12V power supply rather then a battery.

Martin I'm converting your program to the RS232 and pic161938 and will load and see what happens

John
by JLeith
Tue Nov 20, 2018 5:46 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Cold morning here today For the TTL cable the connection to the DFplayer is just 2 wires (TX/RX) For the power to the DFplayer. I didn't load you example your chip was 16F1937 (40pin) mine was 16F1938 (28 Pin) Here is my Flowcode In the Sendbyte I noticed code to dp Version and File size. Is that no...
by JLeith
Mon Nov 19, 2018 11:38 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Hi Martin
Not getting the RS232 to work ?
Checked my wiring and all checks out.

I used the relay connection worked on Adkey_1

Is there a test to confirm RS232 I could do ?

John
by JLeith
Mon Nov 19, 2018 7:04 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12088

Re: DFPlayer Build

Hi Martin I was able to get the IO_2 pulse to ground to play my MP3 1 then play MP3 2. Not able to play the files via the PIC. I'm not 100% sure how to interface my Train detection 1 - Play MP3 - 1 Then Train detection 2 - Play MP3 - 2.... And others to come I have attached my Version 1 Flowcode. I ...