Interface board for Flowcode V8 and above. Now added RTC
Posted: Wed Sep 30, 2020 11:44 pm
The interface board enables Flowcode simulator to work really well with actual hardware.
It is possible to test hardware is working as expected, without programming any target devices, each time a change is made.
You don’t send the flowchart to the interface board either!
You can observe all the commands sent two and from Flowcode & hardware on the console.
The interface board is available from here
The interface board is compatible with all embedded targets!
I will be using two lots of hardware to demonstrate with the USB version of interface board.
LCD with I2C backpack & Wii nunchucks.
If you have a LCD I2C backpack then just connect the LCD backpack to 5v supply and I2C SDA/SCL connections of the interface board.
Make sure switch on the interface board is selected for 5V & the jumper is going across LED 2 pin header.
I used DuPont female to female connections as I have got an interface board with all the male headers soldered on to it.
Plug the USB into the interface board and PC then load Run Flowcode.
Load the attached I2C Backpack LCD.fcfx
Within Flowcode select View Console and select Interface Board.
You can just run the simulation or single step by pressing F8.
The console will display com port that is connected to the interface board.
The brightness of the status LED will be dim except when commands are being sent or received, then will flash much brighter.
The hardware should match the simulation: As there is no hardware to program you can modify the flowchart then run the simulator again.
You will see all the changes on the hardware LCD.
Unplug USB.
Nunchucks:
IMPORTANT: MAKE SURE THE VOLTAGE IS SET AT 3V3
Connect nunchucks to the power and I2C of the interface board.
Plug in the USB then Run Flowcode & load the Nunchuk_InterfaceBoard With LCD.fcfx flowchart.
After selecting Run, I’m now moving the nunchucks is different directions, holding down button C and pushed the joystick to the left.
As I moved the hardware, the Flowcode simulator match perfectly: Now I know without sending code to any targets, that my hardware will work.
If for some reason the hardware does not work with simulator then check the device manager for the USB serial device and what port its connected to: Next select properties of Serial board on the 2D panel & change AutoDetectPort from Yes to no.
Make sure correct com port is shown.
The com port is also shown on console at the very top interface board data.
If you are interested in how Ben created the interface board (both hardware and firmware) then check this out, Very interesting!
On that page you will also find examples for GLCD's and MPU950 accelerator, gyroscope, and digital compass (magnetometer).
Along with firmware source code
Drivers for the board can be found here
Driver was not required for my interface board to work.
Many thanks to Ben for creating & getting all the hardware and Flowcode to work together, he has done an amazing job.
It is possible to test hardware is working as expected, without programming any target devices, each time a change is made.
You don’t send the flowchart to the interface board either!
You can observe all the commands sent two and from Flowcode & hardware on the console.
The interface board is available from here
The interface board is compatible with all embedded targets!
I will be using two lots of hardware to demonstrate with the USB version of interface board.
LCD with I2C backpack & Wii nunchucks.
If you have a LCD I2C backpack then just connect the LCD backpack to 5v supply and I2C SDA/SCL connections of the interface board.
Make sure switch on the interface board is selected for 5V & the jumper is going across LED 2 pin header.
I used DuPont female to female connections as I have got an interface board with all the male headers soldered on to it.
Plug the USB into the interface board and PC then load Run Flowcode.
Load the attached I2C Backpack LCD.fcfx
Within Flowcode select View Console and select Interface Board.
You can just run the simulation or single step by pressing F8.
The console will display com port that is connected to the interface board.
The brightness of the status LED will be dim except when commands are being sent or received, then will flash much brighter.
The hardware should match the simulation: As there is no hardware to program you can modify the flowchart then run the simulator again.
You will see all the changes on the hardware LCD.
Unplug USB.
Nunchucks:
IMPORTANT: MAKE SURE THE VOLTAGE IS SET AT 3V3
Connect nunchucks to the power and I2C of the interface board.
Plug in the USB then Run Flowcode & load the Nunchuk_InterfaceBoard With LCD.fcfx flowchart.
After selecting Run, I’m now moving the nunchucks is different directions, holding down button C and pushed the joystick to the left.
As I moved the hardware, the Flowcode simulator match perfectly: Now I know without sending code to any targets, that my hardware will work.
If for some reason the hardware does not work with simulator then check the device manager for the USB serial device and what port its connected to: Next select properties of Serial board on the 2D panel & change AutoDetectPort from Yes to no.
Make sure correct com port is shown.
The com port is also shown on console at the very top interface board data.
If you are interested in how Ben created the interface board (both hardware and firmware) then check this out, Very interesting!
On that page you will also find examples for GLCD's and MPU950 accelerator, gyroscope, and digital compass (magnetometer).
Along with firmware source code
Drivers for the board can be found here
Driver was not required for my interface board to work.
Many thanks to Ben for creating & getting all the hardware and Flowcode to work together, he has done an amazing job.