Search found 537 matches

by JLeith
Sun Nov 18, 2018 6:17 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12772

Re: DFPlayer Build

Thank you Martin

Only 1 noticed difference is the RS232 on your Count down

Your is listed as UART. I looked but can't see a UART communication. I do see in properties it Type RS232
UART.png
(5.71 KiB) Downloaded 5293 times
I will do some study on the programs.

Back soon
John
by JLeith
Sun Nov 18, 2018 2:03 am
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12772

Re: DFPlayer Build

I have added 2 MP3 Files to the MP3 Folder
MP3.png
(3.99 KiB) Downloaded 5323 times
John
by JLeith
Sun Nov 18, 2018 1:53 am
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12772

Re: DFPlayer Build

Revised drawing for the 1K on the PIC (TX) to the DF RX

John
by JLeith
Sun Nov 18, 2018 1:49 am
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12772

Re: DFPlayer Build

I pickup up a SD card 32GB.
I have wired the DFPlayer.
I will now work on the MP3 Sounds

For the RS232 commands ?

John
by JLeith
Sat Nov 17, 2018 5:37 pm
Forum: Flowcode V6
Topic: DFPlayer Build
Replies: 20
Views: 12772

DFPlayer Build

He All My DFPlayer just arrived this morning and I'm excited to learn more on the DFPlayer Mini I believe the Model is DFR0299 from the paper work. Can't see any markings on the player. I have 2 designs I'm going to try. 1. Resistor value and connect to AdKey_2 2. The RX /TX with RS232 programming T...
by JLeith
Thu Nov 15, 2018 6:49 pm
Forum: Flowcode V6
Topic: Christmas PIC16F1938 not behaving
Replies: 2
Views: 3133

Re: Christmas PIC16F1938 not behaving

I found my error
As soon as I posted the information the light went on.
No Power outage just a memory glitch

I forgot to check the Oscillator settings.

Sorry to post without double checking my options.

John
by JLeith
Thu Nov 15, 2018 6:34 pm
Forum: Flowcode V6
Topic: Christmas PIC16F1938 not behaving
Replies: 2
Views: 3133

Christmas PIC16F1938 not behaving

Hi All I have a simple design for a future DFPlayer that is still in route. I have a design that works in Flowcode 6 but when I load the PIC the LCD will not display the text. I though I had a bad chip so I ordered new and the same results. Here is what I have done. 1. Wired per my design on a bread...
by JLeith
Tue Oct 30, 2018 12:20 am
Forum: Flowcode V6
Topic: Not sure why mu PortB wont trigger
Replies: 2
Views: 3429

Re: Not sure why my PortB wont trigger

Found the Ghost in my program

When I switched to Interrupt on PortB0 I set Portb to 0
BO.png
(32.41 KiB) Downloaded 1914 times
Problem Solved

John
by JLeith
Mon Oct 29, 2018 11:24 pm
Forum: Flowcode V6
Topic: Not sure why mu PortB wont trigger
Replies: 2
Views: 3429

Not sure why mu PortB wont trigger

I have my Halloween design working. My PortB0 trigger won't trip. I have the PortB0 as a Logic 1 trigger state. I have listed the PortB design and the Flowcode. I suspect my Chip is not drawing enough current to register a logic 1 ? I will take some readings at PortB0 and see what is registering. John
by JLeith
Sat Oct 27, 2018 5:52 pm
Forum: Flowcode V6
Topic: $PortA Settings
Replies: 1
Views: 2684

Re: $PortA Settings

My Error

Had not had my coffee. I totally forgot to add in the ( 0B ) to represent Binary.
I noticed my error when I switched to hex ( 0xFE )

And the brain started to work....

John
by JLeith
Sat Oct 27, 2018 5:14 pm
Forum: Flowcode V6
Topic: $PortA Settings
Replies: 1
Views: 2684

$PortA Settings

Hello All Before I go back to the 1 for 1 settings I though I better see if anyone has a explanation on what is happening I had individual port settings for A1-A7 starting off with a Logic 1. I then though I could send $PortB = 11111110 and A1 - A7 should be set to Logic 1 It worked on A1..A2..A6......
by JLeith
Sun Oct 21, 2018 11:09 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hi Martin

Yes on the interrupts are clear.

I will look at clean up of the individual port settings

The 10sec is for Non Ghosts so the Monsters are not on to long. The 20sec is when a Ghost is Detected so the Fog Machine have time to cool down.

Thank you so much with the Timer help.

John
by JLeith
Sun Oct 21, 2018 6:44 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Works like a charm I see you did a cleanup of the Time_tmr and the Variables. In my Main at the start is there a cleaner way to reset the PortC and Port A. I have relay banks on the outputs and they need to be at Logic 1 state. They use Logic 0 to active. Opto Couplers I was trying the Masking but n...
by JLeith
Sun Oct 21, 2018 5:33 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Morning Martin I was able to get the B0 to trigger every time. The Green or is it Blue of no return happen. I placed a Count down as you indicted and I was not getting the numbers correctly. Example - 4 - 3 - 1 - 3 - 2 - 1 Could not see why I could not see a clean 4 -3 - 2 -1....Relay What I don't f...
by JLeith
Sun Oct 21, 2018 1:18 am
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Good News Martin With your help with the timer made it possible I added in the PortB0 Interrupt Add resets to the sec timing after No Ghost and also when Ghost detected. I adjusted the timers for testing. I'm not sure if I can post the Sec on the LCD it updates to fast. Not sure if I can post LCD du...
by JLeith
Sun Oct 21, 2018 12:25 am
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hi Martin Endless Loop once B0 is detected in Flowcode. And nothing happens in the Chip i have loaded into Chip... BO doesn't trigger when activated The Seconds timer works in chip. Watching to see what the chip does at 300 Nothing happened when the Chip went to 300 just went back to zero I added th...
by JLeith
Sat Oct 20, 2018 11:01 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hi Martin

Crash & Burn

Note: Seconds is used in the timer_int Macro. I used the term sec but not much luck

I added the Interrupt
1. Timer 2

And Added the Macro
Timer2ISR

And added the 2 decisions

Now the Flowcode just runs then stops
by JLeith
Sat Oct 20, 2018 8:28 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hi Martin I got the PortB0 to trigger and it works every time. The issue I see know is Flowcode works every time but the hardware locks up after the Relay2 macro runs Getting Load errors but I can't seam to find the faults. Can you help locating the offending. It looks like a call to the LCD ? I thi...
by JLeith
Sat Oct 20, 2018 5:32 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hi again Martin Looking at the Timer Interrupt and the Port B0 Would I not be in the same pickle with the timer ? . If I say set the timer to run for 5 min then how do I trigger a "Ghost" say arrives in 3 min after the Timer Interrupt is timing 1....5 Min ? I will wait for you help on this before I ...
by JLeith
Sat Oct 20, 2018 5:14 pm
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Re: Faster detection on Port A0

Hello Martin Really nice to hear from you on my newest project Yes I can use B0 it is open I was looking at the Interrupt just not sure where to place it in the flow. ? Not sure how the timer interrupt for timing works. Yes the long loop is hard to manage. I will give it a go and see how I make out....
by JLeith
Sat Oct 20, 2018 2:23 am
Forum: Flowcode V6
Topic: Faster detection on Port A0
Replies: 17
Views: 8316

Faster detection on Port A0

Hello All I have a Halloween interface to make my Ghosts and Goblets move when a Ghost comes Trick or Treat. I have a sensor across my walk way that triggers PortA0 to logic 1 The problem I have is I loop 500 times with a 600ms delay to get about 5min with no Trick or Treats to activate a Fog Machin...
by JLeith
Sat Oct 06, 2018 4:59 pm
Forum: Flowcode V6
Topic: Random selections
Replies: 2
Views: 2638

Re: Random selections

Hello Martin Thank you for the info Yes I have a beam sensor across the sidewalk and it send a closed loop. I trigger the PIC like the button on flowcode. I thought there might be many ways to select different orders of activation The reason I was looking for a random selection is the average ghost ...
by JLeith
Sat Oct 06, 2018 2:44 am
Forum: Flowcode V6
Topic: Random selections
Replies: 2
Views: 2638

Random selections

Hell I have a Halloween display of 5 ghost that activate at set intervals. I would like to know how to Random select a ghost to activate rather then 1-2-3-4-5 I have a switch that has 5 branches going down each branch 1-2-3-4-5. I would like a random selection Say Ghost 1 -2-5-3-4 I would think I co...
by JLeith
Wed Sep 19, 2018 10:32 pm
Forum: Flowcode V6
Topic: Flowcode 6 & PicKit 2 [SOLVED]
Replies: 28
Views: 13405

Re: Flowcode 6 & PicKit 2

Solved.png
(31.35 KiB) Downloaded 1381 times
by JLeith
Wed Sep 19, 2018 6:20 pm
Forum: Flowcode V6
Topic: Flowcode 6 & PicKit 2 [SOLVED]
Replies: 28
Views: 13405

Re: Flowcode 6 & PicKit 2

Hello Martin I think I found the missing part 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. My test bead not so much I must have something not right More testing and I might be marking th...