Search found 72 matches

by Bachman
Tue Sep 15, 2020 7:28 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 255

Re: ARRAYS in supplementary code

Maybe:

Code: Select all

const rom unsigned char BATTERY4[]={
0xFF , 0x8F , 0x00,    //LED 1 ORANGE
0xFF , 0x8F , 0x00,    //LED 2 ORANGE
0xFF , 0x8F , 0x00,    //LED 3 ORANGE
0x00 , 0x00 , 0x00,    //LED 4 OFF
0x00 , 0x00 , 0x00};   //LED 5 OFF
by Bachman
Tue Sep 15, 2020 6:07 pm
Forum: Flowcode V5
Topic: Conversion rules float to/from unsigned integer
Replies: 10
Views: 5681

Re: Conversion rules float to/from unsigned integer

Don't use FLOAT, you don't need it. If you have a number what is needed to be increment or decrement by 0.1, multiply everything by 10. In this case, 1004 means 100.4 You have to make some tricks only if you want to display it as a Float. x=1004 (the original number, means 100.4) y=x mod 10 (y will ...
by Bachman
Mon Sep 14, 2020 4:08 pm
Forum: Flowcode V8
Topic: Forum problem
Replies: 3
Views: 148

Re: Forum problem

Working, thank you!
by Bachman
Mon Sep 14, 2020 4:06 pm
Forum: User Components
Topic: DFPlayer mp3 player
Replies: 12
Views: 337

Re: DFPlayer mp3 player

Sorry, i've forgotten an important thing, what is helped for me:
TXRX.png
TXRX.png (2.05 KiB) Viewed 234 times
by Bachman
Mon Sep 14, 2020 11:38 am
Forum: Flowcode V8
Topic: Forum problem
Replies: 3
Views: 148

Forum problem

Hello!

Sorry to post here, didn't find suitable topic.

Can't delete private messages, got "The submitted form was invalid. Try submitting again." message from the forum engine.
by Bachman
Sun Sep 13, 2020 8:35 pm
Forum: Flowcode V7
Topic: help with data logging shield v 1.0
Replies: 2
Views: 433

Re: help with data logging shield v 1.0

Try to search for "openlog module", the easiest way to make data logger. You need only UART (RS232) communication, everything else is made by the module.
by Bachman
Sun Sep 13, 2020 8:21 pm
Forum: Flowcode V6
Topic: I2C eating memory
Replies: 2
Views: 354

Re: I2C eating memory

LM35 have only 0.5 °C resolution. Why are you using 0.125 multiplier? Try DS18B20, it has a resolution of 0.0625 °C, what is enough for displaying 0.1 °C precision. The main problem is the "TempdegC" variable, what is FLOAT. Try to never use FLOAT, you can make some tricks. From "calculate temperatu...
by Bachman
Sun Sep 13, 2020 7:35 pm
Forum: User Components
Topic: DFPlayer mp3 player
Replies: 12
Views: 337

Re: DFPlayer mp3 player

Try this:
Stereo to mono.png
Stereo to mono.png (4.07 KiB) Viewed 269 times
by Bachman
Tue Aug 01, 2017 11:19 am
Forum: Flowcode V6
Topic: PWM problems
Replies: 3
Views: 2513

Re: PWM problems

It's doesn't matter, where is the SetDutyCycle command. After the PWM enabled, the output goes to full duty until it's got another SetDutyCycle command. I've tested it on Flowcode 5, on that version, only the second problem exists, set duty to 255 is not 100 % duty on the HW.
by Bachman
Sat Jul 29, 2017 1:12 pm
Forum: Flowcode V6
Topic: PWM problems
Replies: 3
Views: 2513

Re: PWM problems

Second problem: Set the duty to 255, simulation shows az 100 %, but in the real HW, it's not 100 %.
Duty_255_1.jpg
Duty_255_1.jpg (65.37 KiB) Viewed 2512 times
Duty_255_2.jpg
Duty_255_2.jpg (64.54 KiB) Viewed 2512 times
by Bachman
Sat Jul 29, 2017 1:11 pm
Forum: Flowcode V6
Topic: PWM problems
Replies: 3
Views: 2513

PWM problems

Hello!

I made a little PWM test and i found two problems. See attached program.

First problem: When i power up the controller, after the PWM enable, it's turns on as full duty until it's get another command.
Trun_ON_1.jpg
Trun_ON_1.jpg (69.87 KiB) Viewed 2513 times
Turn_ON_2.jpg
Turn_ON_2.jpg (65.27 KiB) Viewed 2513 times
by Bachman
Mon May 01, 2017 3:09 pm
Forum: Flowcode V7
Topic: delay function problem
Replies: 3
Views: 2898

Re: delay function problem

The flowchart command sends the charaters to a buffer (SW, HW, both?) then waits 4 ms, the main process does not wait for the UART module to finish the job. This is why you see more pause at higher UART baudrate. I think.
Delay time.jpg
Delay time.jpg (36.14 KiB) Viewed 2882 times
by Bachman
Fri Oct 07, 2016 7:17 pm
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 15279

Re: Nextion displays.

Highly recommended, start testing the display via an USB - UART converter. Much-much faster. You can test the commands (with your program in the display), if everithing is ok, write the microcontroller program. Whit this procedure, you can thest the display first. Othervise, you won't know where is ...
by Bachman
Sat Oct 01, 2016 2:08 pm
Forum: General Programming
Topic: Nextion displays.
Replies: 13
Views: 15279

Re: Nextion displays.

I think, the best way using this displays as a normal display. Do everything by the controller, reading from the display only the touch event, nothing more. Reading by UART interrupt, sending data as normal UART communication, easy to use. Sedning "12345" text to object t0: SendRS232String("t0.txt="...
by Bachman
Fri Sep 30, 2016 9:23 pm
Forum: Flowcode V7
Topic: Oled (SSD1306) as slave SOLVED!
Replies: 6
Views: 3777

Re: Oled (SSD1306) as slave

Normally, the I2C bus needs 4.7 kOhm pull up. If you use 2.2 kOhm and the SSD1306 has built-in pull up, the result can be lower than 2.2 kOhm. Smaller resistance, harder to pull down by the RTC and/or SSD1306. Or try to monitor the I2C bus by a logic analyser.
by Bachman
Sat Aug 27, 2016 11:53 am
Forum: Flowcode V7
Topic: Compiler in FREE mode
Replies: 7
Views: 6275

Re: Compiler in FREE mode

Benj wrote:Would it be possible for you to share your v5 flowchart with us.
Yes: DS18B20 & Memory (ROM) usage (Flowcode v6 topic).
by Bachman
Sat Aug 20, 2016 8:36 pm
Forum: Flowcode V7
Topic: Compiler in FREE mode
Replies: 7
Views: 6275

Re: Compiler in FREE mode

PicoPuls wrote:Does that mean that the Microchip FREE mode compiles 10 times faster
than the previous compiler in Flowcode6?
Maybe only the hex generation is faster. Same flowchart tested in FC v5, v6 and v7:
TestResults.jpg
TestResults.jpg (128.08 KiB) Viewed 6135 times
by Bachman
Thu Jul 14, 2016 7:47 pm
Forum: Bug reports
Topic: System requirements
Replies: 8
Views: 4869

Re: System requirements

Yes, i'm using XP only for two reasons: Flowcode and Proteus. The main system is Mac OS. Ok, no problem to create a new virtual machine. The problem is simple: i can install, but not run. Message from the installer is missing: "Flowcode 7 requires Windows 7 or newer" -> "Quit Installer" (no other op...
by Bachman
Wed Jul 13, 2016 6:41 pm
Forum: Flowcode V7
Topic: Welcome to the Flowcode 7 Forums
Replies: 5
Views: 14311

Re: Welcome to the Flowcode 7 Forums

Hello!

A little mistake:
Shot_525.jpg
Shot_525.jpg (62.1 KiB) Viewed 14260 times
by Bachman
Wed Jul 13, 2016 5:46 pm
Forum: Bug reports
Topic: System requirements
Replies: 8
Views: 4869

System requirements

Hello!

Where is the System requirements? Flowcode 7 free version installed without any warnings, but if I want to start, i got this:
Shot_524.jpg
Shot_524.jpg (27.99 KiB) Viewed 4869 times
... FlowcodeV7.exe is not a Win32 application. :)


The Win system is very minimal in a virtual machine, separated from the world.
by Bachman
Mon May 23, 2016 8:07 pm
Forum: Flowcode V6
Topic: GSM Component
Replies: 22
Views: 13274

Re: GSM Component

Did you try pure UART (RS232) communication? I think, when you call the GSM module, it's sending the information via UART.
by Bachman
Mon May 23, 2016 8:05 pm
Forum: Flowcode V6
Topic: PIC16F1779 is not supported
Replies: 3
Views: 2178

Re: PIC16F1779 is not supported

External D/A converter.
by Bachman
Mon May 23, 2016 8:01 pm
Forum: Bug reports
Topic: KS0108 bugs or wrong settings??
Replies: 8
Views: 6011

Re: KS0108 bugs or wrong settings??

Use the fastest controller you got, clock it as fast as possible. In the gLCD properties panel, set the "Display Enable" to 1. Zero, or higher number than 1 will slow down the gLCD. I'm using some KS0108 with PIC18F26K22 at 64 MHz, but the display isn't too fast. Better than running the controller a...
by Bachman
Sun May 22, 2016 3:07 pm
Forum: Bug reports
Topic: ILI9341 after update
Replies: 10
Views: 11058

Re: ILI9341 after update

Hello!

Result of the last update:
ILI9341.jpg
(322.52 KiB) Downloaded 1923 times
by Bachman
Sun Apr 03, 2016 11:00 am
Forum: Bug reports
Topic: ILI9341 after update
Replies: 10
Views: 11058

Re: ILI9341 after update

Hello!

Better...
ILI9341.jpg
ILI9341.jpg (85.55 KiB) Viewed 10833 times
Suggestion :wink:
Programmer.jpg
Programmer.jpg (34.73 KiB) Viewed 10833 times