Search found 7184 matches

by medelec35
Sat Jul 11, 2020 5:35 pm
Forum: Flowcode V7
Topic: Timer Counter in Sim
Replies: 2
Views: 51

Re: Timer Counter in Sim

I would never recommend screen captures.
We can't get the full picture from them.
can you post flowchart please.
by medelec35
Fri Jul 10, 2020 3:17 pm
Forum: Flowcode V8
Topic: Switch with more than 10 branches
Replies: 4
Views: 83

Re: Switch with more than 10 branches

What about using the lookup table component?
That can derive a value from an index.
by medelec35
Thu Jul 09, 2020 1:31 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

If you have a variable with no expression, then condition will be true for all values except 0.
So you could look at if: Variable as being the same as If: Varaible <>0 or If: Varaible =! 0
by medelec35
Thu Jul 09, 2020 12:21 pm
Forum: Flowcode V8
Topic: T6963C Display Driver Support
Replies: 4
Views: 83

Re: T6963C Display Driver Support

As you mentioned v8 I have moved your post from the v6 section.
It will make it easier to get help, if you uploaded flowchart you are having an issue with.
by medelec35
Thu Jul 02, 2020 11:22 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

It is, but that's what I enjoy.
It's even better when you can get the hardware to do wanted it to.
Have fun. :)
I have attached how I would toggle the alarm on/off every second.
by medelec35
Thu Jul 02, 2020 6:39 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

Hi Ian, Glad you got there in the end. Next step is to change the fixed values to variables but wondering how much code you can have in the Macro without it having a significant effect on the overall running, or best to always to do as much as possible in the main loop? check out this post , and the...
by medelec35
Thu Jul 02, 2020 12:07 am
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

Hi Ian, you're welcome. I have attached the file in as there is an error in the configuration My guess is because PLL is enabled it's forcing clock frequency to 96MHz so USB will work. There are two options. 1. leave PLL enabled but change clock speed to 96MHz You will also need to change timer 2 se...
by medelec35
Wed Jul 01, 2020 11:43 am
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

This is how I would generate a 1000Hz square wave using timer 2 interrupt. 1. Use as fast as practical clock speed, then modify configuration settings. 2. Check everything is set correctly by running 1 second flash test . Scroll down the page for basic configuration settings. 3. Download Timer 2 Cal...
by medelec35
Tue Jun 30, 2020 12:29 am
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

Hi Ian, What I would do if I was you is go to the Main Flowcode 8 site Scroll down to Program your embedded devices: Change to Show 100 entries. Click on the Up arrow of the Pins section. Go to page 2 and scroll down to the 20 pin microcontrollers. Select a suitable microcontroller based on function...
by medelec35
Mon Jun 29, 2020 2:04 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 16
Views: 382

Re: Piezo Sounder accuracy

Hi Ian,
Are you able to choose a different target device?
A newer one that has timer2 interrupt, it will make life easier for you.
I can create a quick tutorial on how to generate a given frequency.
Do you want to stick with 14 pins?
by medelec35
Sat Jun 27, 2020 9:54 pm
Forum: User Components
Topic: DS3231 revisited
Replies: 4
Views: 110

Re: DS3231 revisited

Hi Martin,
Thank you.
I like the sound of setting alarms from the DS3231
That is one thing the RTC within Flowcode (compatible with DS3232) is lacking:
FC8  RTC Component.png
FC8 RTC Component.png (46.46 KiB) Viewed 88 times
When I get a chance I will do some testing & let you know how it goes.
by medelec35
Thu Jun 25, 2020 4:17 pm
Forum: Flowcode V8
Topic: AUTOMATIC SANITIZER
Replies: 20
Views: 677

Re: AUTOMATIC SANITIZER

Thank you Derrihj,
Very kind words indeed.
All very much appreciated.
by medelec35
Thu Jun 25, 2020 3:41 pm
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 724

Re: Connecting 2 to 9 switches on one ADC pin

Hi jorgen,
Thank you, its appreciated. :)
jgu1 wrote:
Thu Jun 25, 2020 1:11 pm
Why is it not possible to give thump up anymore?
Because of the the new server & forums update.
DavidA mentioned it here.
by medelec35
Wed Jun 24, 2020 10:36 pm
Forum: Flowcode V6
Topic: OLED Design
Replies: 7
Views: 343

Re: OLED Design

Hi John,
The picture shows 3200000 = 3.2MHz
Should be 32000000 i.e 32 with 6 0's
Hence why delay is 10 times faster than what it should be.
JLeith wrote:
Wed Jun 24, 2020 8:16 pm
Odd this Flowcode was running with a LCD
LCD's don't appear to be as fussy.
In theory, you can control an LCD with manually operated switches!
by medelec35
Tue Jun 23, 2020 11:03 pm
Forum: Flowcode V6
Topic: OLED Design
Replies: 7
Views: 343

Re: OLED Design

Hi John, Have you tried the one second flash test ? I Don't continue a new project until timing is correct. With your flowchart you have Clock speed set to 1MHz. However the osccon=0xf0; c Code block will force hardware to run internal oscillator at 32MHz. As the clock speed of your flowchart does n...
by medelec35
Tue Jun 23, 2020 11:39 am
Forum: Flowcode V8
Topic: AUTOMATIC SANITIZER
Replies: 20
Views: 677

Re: AUTOMATIC SANITIZER

Hi Derrihj,
That's great!
Well done.
Display is looking looking really good. :)
by medelec35
Mon Jun 22, 2020 8:43 pm
Forum: General Programming
Topic: SuperCapacitor Backup supply
Replies: 13
Views: 6652

Re: SuperCapacitor Backup supply

When multiple files with different file numbers saved on the vdrive, I used Auto hotkey to automatically merge all the files into one CSV file. at the click of a button. Worked well for me as kept the files small so there was a fair few after 6 months, when I revisited the site Vdrive was installed ...
by medelec35
Mon Jun 22, 2020 7:01 pm
Forum: General Programming
Topic: SuperCapacitor Backup supply
Replies: 13
Views: 6652

Re: SuperCapacitor Backup supply

I am using it with the Vdrive you sorted out for me Great idea! How is the Vdrive performing? Wondering if worth having a Vdrive component? Alternatively there is the FAT SD component. The only difference for people that don't know about Vdrive. It reads and writes to USB flash drive, instead of SD...
by medelec35
Mon Jun 22, 2020 6:53 pm
Forum: Flowcode V8
Topic: Create Timer loop(sec)
Replies: 20
Views: 2907

Re: Create Timer loop(sec)

Hi Glen, I have made some changes, but only covered : Both blower & sludge pump run on a 7 Hour timer cycle. At the start of main loop timer cycle , the blower pump is turned off (Port RB1 = 0) and the sludge pump is turned on (Port RB0 = 1) for 2 mins and is then switched off (Port RB0 = 0) for the...
by medelec35
Mon Jun 22, 2020 5:36 pm
Forum: General Programming
Topic: SuperCapacitor Backup supply
Replies: 13
Views: 6652

Re: SuperCapacitor Backup supply

I think its a great idea!
Gives the hardware time to complete all routines to go into shutdown mode.
This could include displaying a message on an LCD stating: power failure,
Going to shout down in 10, 9 , 8 etc/

Thanks Steve
by medelec35
Mon Jun 22, 2020 5:17 pm
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 724

Re: Connecting 2 to 9 switches on one ADC pin

Thanks Ben,
You're welcome.
Saves changing microcontroller if not got enough pins.
by medelec35
Sun Jun 21, 2020 11:15 pm
Forum: E-blocks
Topic: ppp v3.11 and/or usb-driver for Windows 10
Replies: 3
Views: 544

Re: ppp v3.11 and/or usb-driver for Windows 10

Hi Cees,
Until issue with files on the forum is resolved,
I have attached the version that is shipped with Flowcode v8.
by medelec35
Sun Jun 21, 2020 1:17 pm
Forum: Flowcode V8
Topic: AVR MEGA8 Intrrupt error
Replies: 2
Views: 224

Re: AVR MEGA8 Intrrupt error

Hi RABO2320, Your Flowchart compiles for me OK: Launching the compiler... D:\test\Compilers\avr\batchfiles\avra.bat atmega8 "D:\Flowcharts\4x4_7seg_2.elf" "D:\Flowcharts\4x4_7seg_2.c" "D:\Flowcharts\4x4_7seg_2.lst" D:\Flowcharts>"D:\test\Compilers\avr\batchfiles\..\bin\avr-gcc.exe" -mmcu=atmega8 -Os...
by medelec35
Sat Jun 20, 2020 9:37 pm
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 724

Re: Connecting 2 to 9 switches on one ADC pin

Your welcome Steve.
Thank you.
by medelec35
Sat Jun 20, 2020 2:44 pm
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 724

Re: Connecting 2 to 9 switches on one ADC pin

Hi Martin, Thank you for your query. You are spot on! I just did a calculation so the ADC was in the middle of two ranges which indeed could cause issues if not nested. I have change the excel sheet so the start in the next value is 1 greater then the end of the previous value. It does shift from th...