Search found 568 matches

Return

by Steve
Wed Jun 26, 2019 9:08 am
Jump to forum
Jump to topic

Re: SCADA WebBrowser

Great idea - thanks! I think having the browser window in the panel itself might be difficult, but we should be able to create a dockable browser window that is controllable via Flowcode.

We'll add this to our list of new features.
by MJU
Tue Jul 02, 2019 10:56 pm
Jump to forum
Jump to topic

E32 LORA tranceiver module: quick start guide

I have promised to share my experience with the E32 LORA tranceiver modules from the Chinese manufacturer EBYTE. I've wrote a bit of text to help other people to play with these modules and I hope that someone makes a Flowcode component for these modules in the future. A lot of thanks goes to chipfr...
by mnf
Sun Jul 07, 2019 6:18 pm
Jump to forum
Jump to topic

Main control

Been a while since I've come up with any new tips (major problems with my eyes have meant little programming for the last few months :( ) So today: Need to control a mains device using a micro controller. Minimal fuss and maximum safety! I wanted to use either a TP-Link plug or a sonoff device but n...
by Jan Lichtenbelt
Thu Jul 11, 2019 10:29 am
Jump to forum
Jump to topic

Re: ADC FVR (Fixed Voltage Reference)

In the meanwhile I found a solution by entering the c-code after the RawEnable macro: //ADC Vref+=FVR=2.048 Volt FVRCON= FVRCON | 0x82; // set bit 1 (FVR 2.048 V) and 7 (FVR enable) FVRCON= FVRCON & 0xFE; // clear bit 0 (FVR 2.048 V) This gives ADC values between 0-1024 for voltages between 0-2....
by QMESAR
Fri Jul 19, 2019 3:22 pm
Jump to forum
Jump to topic

Re: Assembly code

Why assembly a C function call with normal C code is perfect

here I am using a C icon and C code to use Timer1 on dsPIC as an example

P1.jpg


P2.jpg
by Benj
Fri Dec 13, 2019 5:54 pm
Jump to forum
Jump to topic

Re: CAL_ADC component

I'm planning to add multi-adc support for the next major Flowcode release.

Also currently investigating DMA support for various peripherals including adc.
by QMESAR
Wed Jan 01, 2020 9:23 am
Jump to forum
Jump to topic

Re: Compile error

Hi. If you have problems and need help the least you can do is take the time to explain your problem and also tell people what FC version you are using saying this is not much of help why? help me It also shows disrepect to the people you are asking help from,if you do not take the time to explain y...
by medelec35
Sun Jan 05, 2020 4:24 pm
Jump to forum
Jump to topic

Re: Bad mistake in FC8!

Hi Abhi,
AbhijitR wrote:May I request you to introduce "Auto Save Function" like Microsoft Office or some other programs have, which will keep saving the work at every defined time

Within View menu, global options then application tab you should see:
Autosave.png
by medelec35
Sat Jan 18, 2020 1:46 pm
Jump to forum
Jump to topic

Re: Real time Hourly Device Control

Hi Derrih, is it advisable to use internal oscillator while designing a real time clock? No, internal oscillator is not suitable. Lets do some calculations to prove this. Suppose internal osc has a tolerance of 1%. Since there are 86400 seconds in a day. The maximum error is 86400*1/100 = 864 secs =...
by LeighM
Wed Jan 22, 2020 9:13 am
Jump to forum
Jump to topic

Re: 24C16 component - NOT FUNCTIONING??

Hi,
Just to check…
Are you using 24C16 Flowcode component with a 24C16 device,
and 24C32 Flowcode component with a 24C32 device?
24C32 and 24C16 work differently.
by Benj
Fri Jan 24, 2020 2:26 pm
Jump to forum
Jump to topic

Re: FLOAT to INT and back again.

If you wanted to convert floats to 4 bytes then you would use the SetFloat function to load in the float and then call the GetByte function four times with indexes 0-3. The icon of the component on the panel should show how the values interrelate. Type.jpg This topic should help if you want to do th...
by fotios
Sun Feb 09, 2020 10:20 am
Jump to forum
Jump to topic

Bantham, wireless energy meter

Bantham_Moment_Moment.jpg The two boards are identical, the left is configured as energy monitor and transmitter and the right as the receiver. The host micro is a PIC16F18877 with dual SPI bus. One bus is allocated to the polyphase energy monitor ATM90E32AS of Microchip, and the second to the LAMB...
by fotios
Tue Feb 11, 2020 9:38 pm
Jump to forum
Jump to topic

Re: Bantham, wireless energy meter

So, here we go. Attached is the Transmit FCF. I tried to separate the code related to ATM90E32AS energy meter but proven quite difficult as the LoRa TX-RX packet length is configured to carry out 40 bytes. The time delays within the main Loop are critical and have been calculated by experimenting to...
by Benj
Thu Feb 13, 2020 9:54 pm
Jump to forum
Jump to topic

Re: OLED with SPI SSD1306/SH1106 --> additional fonts

I've gone for the multiple fonts approach and removed the font scaling, as I say this cleaned up the code a lot. The font parameter now selects which font you want to use. Currently I have enabled up to four fonts to be loaded into a single display and it's all working nicely in the sim.

Fonts.jpg
by medelec35
Mon Feb 17, 2020 5:57 pm
Jump to forum
Jump to topic

Re: simple adc flowchart programming pic16f616

Ah, spotted two issues with configuration settings. 1) You have watchdog enabled. Since you don't have Auto clear watchdog selected, you need to disable watchdog within configuration settings. 2) You have Master clear enabled as external, but you have not got a pull-up on pin 4. You will need to cha...
by medelec35
Tue Feb 18, 2020 7:12 am
Jump to forum
Jump to topic

Re: UART / circular buffer - performance - non-performance..

Hi Spencer, Look at the images in your last post. You have got: Rx Tx.png If you want to use RX for example, you should select Yes for Use RX . It's when you select yes, you should see option to select pins. Why should there be an option to select pins if you don't want to use RX or TX? Should there...
by medelec35
Tue Mar 03, 2020 10:40 pm
Jump to forum
Jump to topic

Re: MIAC for pulse duration measuring

Hi PK, Measuring pulse width could be one method for measuring frequency. However, the method I use for measuring RPM is start a timer interrupt, use a port pin interrupt(e.g INT2) to count pulses over a set period of time e.g 1 second. The RPM will be the total number of pulses * 60. I have used a ...
by davhal
Tue Mar 10, 2020 3:45 pm
Jump to forum
Jump to topic

Re: GD32F130C8T6 STM32F103xx STM32F1xx ???

Brief update #2 > mild setback! It appears the PCB layout does not follow filed schematic: - reasons provided from fab include -> GD port pins/functions can be moved around to suit routing, etc.; Initially this caused concern when checking and pseudo reverse engineering, however, with the help of: -...
by medelec35
Tue Mar 10, 2020 7:09 pm
Jump to forum
Jump to topic

Timer 2 Calculator

I prefer using timer 2 over other timers as it allows much more precise control. That is because you have a Postscaler, Prescaler and a rollover value to deal with. While having more options gives you much better flexibility, it's downfall is its more complicated to calculate correct values to give ...
by medelec35
Wed Mar 11, 2020 10:24 am
Jump to forum
Jump to topic

Re: Timer 2 Calculator

V2 shows a more instant values without having to select drop-down filter.
Timer 2_Calculator V2 Instant View.png

Also, selection bug fix.
by Benj
Wed Mar 18, 2020 1:53 pm
Jump to forum
Jump to topic

Re: Problem in the round(x) Function

Yes it looks like we round up.

2.0 = 2
1.5 = 2
1.0 = 1
0.5 = 1
0.0 = 0
-0.5 = 0
-1.0 = 0
-1.5 = 1
-2.0 = 1
-2.5 = 2

Here is the code.

Code: Select all

#define flt_round(f) ((long)((f) + 0.5))


Maybe the Floor function would do more as you expect?
by LeighM
Wed Mar 18, 2020 1:37 pm
Jump to forum
Jump to topic

Re: Problem in the round(x) Function

What is your expected result?
Looks like we simply add 0.5 (effectively rounding to nearest integer, for positive numbers at least.
Do you want rounding up, down, or towards zero?
If you have a project that expects a particular outcome you might need to create your own macro/function to do this.
by Benj
Thu Mar 26, 2020 10:07 pm
Jump to forum
Jump to topic

Re: Internal osc

Hi Martin,

That's done for you now. Nice spot.
by medelec35
Fri Mar 27, 2020 6:40 pm
Jump to forum
Jump to topic

Re: Getting a 16F1937 to run at 32mhz

The best way of determine what frequency the oscillator is running at, is by doing the 1-second flash test
This can be done if using internal or external oscillator and is 100% reliable.
by Benj
Mon Mar 30, 2020 9:53 pm
Jump to forum
Jump to topic

Re: i2C UART SPI Hardware Software Bitbang & Initialising

Hello, SPI and I2C can both easily be bit banged with a software channel, the only downside is a potential loss of speed but there will be no data corruption. I2C is often pretty slow anyway and so there is no major downside to using software instead of hardware. UART is more tricky as it's based he...