Read momentary switch state - press and press again must be On / Off

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Read momentary switch state - press and press again must be On / Off

Post by medelec35 »

Frank607 wrote:I see that the LEDs are going On when I push a button. My relays are on PORTC and I don’t know how I can activate them in your flowchart.
Oh, I understand now.
I have modified the flowchart so you can assign multiple outputs to each switch.
Not sure in hardware why you would not have just one output pin for each switch and connect both relays and one LED to the it.
Excessive current will not be drawn as transistors can be used to enable both relays and LEDs on the one pin.
Attachments
Switch toggle V1.5.fcfx
(37.21 KiB) Downloaded 223 times
Martin

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Read momentary switch state - press and press again must be On / Off

Post by Frank607 »

Hi Martin,

I have test your updated flowchart and it is working perfect ! :-) |I have on this PCB 2x ULN2803 transistor arrays. But to keep it flexible with the existing HCS361 remote keys I need this flexibility.

I understand now much more easier the flowchart.

Many thanks for helping me out. I think I don’t need it but I have just bought the update from V7 to V8, just to support the whole FlowCode team. I said It before; Keep on this road ! :-)

Attached a picture from the HCS512 Decoder PCB.

Thanks,

Frank
2019-08-03 19.21.48.jpg
2019-08-03 19.21.48.jpg (115.08 KiB) Viewed 3555 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Read momentary switch state - press and press again must be On / Off

Post by medelec35 »

Hi frank,
Glad the Flowchart works ok.
Board looks good.
Out of curiosity, What PCB package did you use?
V8 is great, worth using if you have both V7 & V8.
Thanks for keeping us updated. :)
Martin

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: Read momentary switch state - press and press again must be On / Off

Post by Frank607 »

medelec35 wrote:Hi frank,

Out of curiosity, What PCB package did you use?
The PCB design software is Eagle 7.7. I’m not going higher because of the acquisition from CadSoft by Autodesk with their monthly abonnements. I hate this. For routing I use Electra Autorouter, very efficient and also no monthly abonnements. Greate tool to have.

Hint: I really hope that FlowCode also will not go to a abonnement per month.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Read momentary switch state - press and press again must be On / Off

Post by medelec35 »

I like using Kicad as its free with unlimited pins,layers and board size.
V5 is good improvement on V4
I like you way you assign the foot prints to the symbols.
That means you don't have to delete the schematic schematic symbol to easily change the footprint.
A disadvantage is it has not got a built -in auto router anymore.

I Don't blame you for not wanting to pay a monthly subscription, I would not want to either.
Martin

Post Reply