Search found 7180 matches

by medelec35
Thu Jul 02, 2020 11:22 pm
Forum: Flowcode V8
Topic: Piezo Sounder accuracy
Replies: 13
Views: 273

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: 13
Views: 273

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: 13
Views: 273

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: 13
Views: 273

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: 13
Views: 273

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: 13
Views: 273

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: 99

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 77 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: 632

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: 620

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: 330

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: 330

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: 632

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: 6605

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: 6605

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: 2879

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: 6605

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: 620

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: 454

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: 213

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: 620

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: 620

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...
by medelec35
Sat Jun 20, 2020 10:04 am
Forum: Flowcode V8
Topic: Create Timer loop(sec)
Replies: 20
Views: 2879

Re: Create Timer loop(sec)

Hi Glen, Welcome to the forums. You have not stated what issue you are having. First thing to do is remove the one second delay from the IOC interrupt macro. Next make sure timing of hardware is correct. One way is the one second flash test . I have noticed on your circuit you have not got the two l...
by medelec35
Sat Jun 20, 2020 9:55 am
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 620

Re: Connecting 2 to 9 switches on one ADC pin

Thanks Martin. much neater than multiplexing the switches Agreed. The other alternative is to use all the same resistor values e.g 1K2 in series, connected between +VDD & GND. A high value resistor e.g 820K is connected between ADC pin and GND. The ADC pin can then be connected to each series resist...
by medelec35
Sat Jun 20, 2020 1:12 am
Forum: Programming Tips & Tricks
Topic: Connecting 2 to 9 switches on one ADC pin
Replies: 12
Views: 620

Connecting 2 to 9 switches on one ADC pin

As we know, Flowcode has made programming microcontrollers so much easier than with C code for example. This tip is keeping with the theme of making things easier. To do that, I have created a spreadsheet that will allow you to easily connect from 2 to 9 single pole switches, e.g tactile to a single...
by medelec35
Wed Jun 17, 2020 10:56 am
Forum: Flowcode V8
Topic: I2C LCD2004 component [Solved]
Replies: 2
Views: 147

Re: I2C LCD2004 component

Hi David, Why not just use the existing LCD I2C (BACKPACK) component Wow, Did not know how I missed that! Thank you for your help, it was really appreciated. All working with the Backpack component as you have suggested. As component already exists, I have moved this from the Feature requests section.