Search found 2067 matches

by LeighM
Fri Mar 12, 2021 4:40 pm
Forum: Flowcode V8
Topic: HT16K33 fault stops program execution
Replies: 11
Views: 4365

Re: HT16K33 fault stops program execution

If the HT16K33 controller gets disconnected from the micro for any reason Do you mean the "shield" is removed from the Arduino? If so, it could be that, if the I2C pull-up resistors are on the shield board, then their removal could be causing the issues. If disconnection of the hardware is a known ...
by LeighM
Fri Mar 12, 2021 11:52 am
Forum: Flowcode V8
Topic: HT16K33 fault stops program execution
Replies: 11
Views: 4365

Re: HT16K33 fault stops program execution

Seems odd to lockup on I2C, could you post your program?
That would be of help to us.
If it's occasional, it could be hardware/PSU related, in which case, as already suggested, a watchdog is the solution.
Thanks
by LeighM
Thu Mar 11, 2021 3:42 pm
Forum: Flowcode V8
Topic: RPi 4B HDMI Component Touchscreen
Replies: 8
Views: 5014

Re: RPi 4B HDMI Component Touchscreen

Hi, Thanks for the spot with this, GetTouchCoordinates was indeed blocking (when no mouse/touch movement) I've now fixed this and an update should be available soon. The 'hover hints' of the functions give information about usage, but not very detailed. As you have found, GetTouchCoordinates should ...
by LeighM
Thu Mar 11, 2021 10:47 am
Forum: Flowcode V8
Topic: RPi 4B HDMI Component Touchscreen
Replies: 8
Views: 5014

Re: RPi 4B HDMI Component Touchscreen

Sorry for the delay in answering.
I was hoping to look at this issue later this morning.
I'll be back ...
by LeighM
Wed Mar 10, 2021 11:44 am
Forum: Flowcode V8
Topic: RPI 4B HDMI Component on Flowcode V8
Replies: 5
Views: 2034

Re: RPI 4B HDMI Component on Flowcode V8

You will need to change the Raspberry Pi Configuration to "Boot to CLI"
(not "Boot to Desktop")
This is preferable anyway, because the desktop needs to be disabled to use the Flowcode display component.
(It uses the whole screen via the frame buffer)
by LeighM
Wed Mar 10, 2021 11:23 am
Forum: Flowcode V8
Topic: RPI 4B HDMI Component on Flowcode V8
Replies: 5
Views: 2034

Re: RPI 4B HDMI Component on Flowcode V8

Thanks.
I have now confirmed it is not working on the latest Pi OS,
(was OK on my Raspbian Buster)
looks like the goalposts have moved :(
I will need to investigate further
by LeighM
Wed Mar 10, 2021 9:34 am
Forum: Flowcode V8
Topic: STM32F072
Replies: 12
Views: 4627

Re: STM32F072

Hi,
You can use a Flowcode calculation icon

For example to put port C pin 13 high ...

Code: Select all

$PORTC.13 = 1
Or this code to read the input state of port C pin 13 into a variable "Button" ...

Code: Select all

Button = $PORTC.13
by LeighM
Tue Mar 09, 2021 12:25 pm
Forum: Flowcode V8
Topic: RPI 4B HDMI Component on Flowcode V8
Replies: 5
Views: 2034

Re: RPI 4B HDMI Component on Flowcode V8

It's working for me (on HDMI0)
What operating system and version are you using? (on the Raspberry Pi)
by LeighM
Tue Mar 09, 2021 9:12 am
Forum: Flowcode V8
Topic: STM32F072
Replies: 12
Views: 4627

Re: STM32F072

In an attempt to keep things simple, for the Nucleo "Arduino" format compatible boards we limited the IO pins to those on the "Arduino" headers. If you click View->Target Device you will see this and the pins available. If you need more than those pins I will look at creating a device file for the 3...
by LeighM
Mon Mar 08, 2021 9:18 am
Forum: Flowcode V8
Topic: STM32F072
Replies: 12
Views: 4627

Re: STM32F072

Best to upgrade to V9 and the ARM pack https://www.flowcode.co.uk/

You can see the contents of component packs here ...
https://www.flowcode.co.uk/buy/process/

And get an upgrade price here ...
https://www.flowcode.co.uk/buy/upgrade/
by LeighM
Tue Feb 23, 2021 6:26 pm
Forum: Flowcode V8
Topic: BL0011 Baud Rate problem
Replies: 6
Views: 2746

Re: BL0011 Baud Rate problem

Do you have a DVM to check the power supply voltage on the Click module?
Also check the RS232 Tx output voltage.
Presumably the Click RS232 is connected to COM1 PC port?
by LeighM
Mon Feb 15, 2021 9:20 am
Forum: Feature Requests
Topic: Raspberry Pi Pico
Replies: 3
Views: 9204

Re: Raspberry Pi Pico

Yes, it's going to take some work (new toolchain, CAL etc)
Raspberry Pi modules to date use a Broadcom device and run an operating system (Linux) the Pico does not.
But it's a very interesting device :D
by LeighM
Fri Feb 12, 2021 6:35 pm
Forum: General Programming
Topic: voltage divider values
Replies: 8
Views: 6552

Re: voltage divider values

In that case you might as well use high value resistors. Two the same will limit the maximum ADC voltage to 4.5v. The ADC input current draw when sampling will cause the ADC voltage to drop. But in this scenario you could calibrate the ADC readings for your own purposes. That is, determine the ADC v...
by LeighM
Fri Feb 12, 2021 5:57 pm
Forum: General Programming
Topic: voltage divider values
Replies: 8
Views: 6552

Re: voltage divider values

Hi Bob, 68k resistors would not provide a low enough source impedance. Do you need to measure the voltage accurately, or is it just a "battery low" indicator? Is this for a "maker" project, or a product designed for quantity production? This will help determine the best way to go with this, as there...
by LeighM
Fri Feb 12, 2021 9:11 am
Forum: General Programming
Topic: voltage divider values
Replies: 8
Views: 6552

Re: voltage divider values

The datasheet gives a sampling current of about 250uA
which as you say will equate to a parallel resistor, of ~20K
So depends what kind of accuracy you require
by LeighM
Thu Feb 04, 2021 10:38 am
Forum: Flowcode V8
Topic: OLED W Click mikroe
Replies: 3
Views: 3284

Re: OLED W Click mikroe

Hi,

If you are using...
BL0032 E-blocks2 dsPIC Programmer
BL0101 E-blocks2 Click Adaptor board
Then the port pin mapping is as follows...

Reset - 7
CS - 2
SCL - 5
SDA - 3
DC - 6

For Port D/G this would map as...

Reset - G9
CS - D10
SCL - G7
SDA - D11
DC - G8
by LeighM
Wed Jan 27, 2021 5:24 pm
Forum: Forums d'aide en français
Topic: probleme lors d'utilisation de timer + timer interrupt mega 2560
Replies: 3
Views: 5246

Re: probleme lors d'utilisation de timer + timer interrupt mega 2560

The compile error is because you had a Timer component in your project, but did not have any of its functions on your flowchart. L'erreur de compilation est due au fait que vous aviez un composant Timer dans votre projet, mais que vous n'aviez aucune de ses fonctions sur votre diagramme. Timer.png T...
by LeighM
Thu Jan 14, 2021 3:42 pm
Forum: MIAC
Topic: MIAC CAN Interrupt
Replies: 4
Views: 9905

Re: MIAC CAN Interrupt

There are no spare inputs.
But you could link across to either (UART0 RX) Port E1, or (UART1 RX) Port E3
Assuming you don't require both UARTs
These are available if you remove the UART selection header link ...

MCP2515.jpg
MCP2515.jpg (73.54 KiB) Viewed 9878 times
by LeighM
Thu Jan 14, 2021 11:37 am
Forum: MIAC
Topic: MIAC CAN Interrupt
Replies: 4
Views: 9905

Re: MIAC CAN Interrupt

Which version of MIAC are you using?
by LeighM
Thu Jan 07, 2021 12:39 pm
Forum: MIAC
Topic: MIAC dsPIC Keypad
Replies: 2
Views: 3460

Re: MIAC dsPIC Keypad

Hi,
Sorry for the omission.
It's the same for V3 MIACs, dsPIC etc.
Thanks
Leigh
by LeighM
Wed Jan 06, 2021 2:58 pm
Forum: General Programming
Topic: Communicating between pics
Replies: 6
Views: 7030

Re: Communicating between pics

Similar to Ben and Steve, a two wire RS485 or single wire-or'd (open collector driver) if data rates are slow. As a very simple protocol .. If you connect to an 8 bit UART you have 256 codes or addresses for the slaves If you reserve 2 codes for on/off you could then use the master to poll each slav...
by LeighM
Wed Dec 30, 2020 5:26 pm
Forum: MIAC
Topic: dsPIC MIAC RS485 Communication
Replies: 5
Views: 4484

Re: dsPIC MIAC RS485 Communication

The transceiver is a SN65HVD10DR which has built in ESD Protection,
but external extra TVS sounds like a good idea in your application :D
by LeighM
Wed Dec 30, 2020 12:07 pm
Forum: MIAC
Topic: dsPIC MIAC RS485 Communication
Replies: 5
Views: 4484

Re: dsPIC MIAC RS485 Communication

Hi,
No, there is no internal termination resistor.
Or pullup/pulldown
Regards
Leigh
by LeighM
Tue Dec 15, 2020 5:11 pm
Forum: Flowcode V8
Topic: ESP8266 as target chip
Replies: 43
Views: 37364

Re: ESP8266 as target chip

Hi Stefan, I've now fixed the SSID reading, I will ask Ben to push this out on the update system. Please note that we currently limit the maximum SSID count to 8 (to conserve memory), but we can change this in the CAL if it becomes necessary. Also the SSID information is an array so starts at 0, not...
by LeighM
Thu Dec 03, 2020 11:03 am
Forum: Flowcode V8
Topic: STM32F407ZG I2c ( software only)
Replies: 2
Views: 1624

Re: STM32F407ZG I2c ( software only)

Please try the attached update file, and restart Flowcode, to go into ...
C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARM

Please note that STM hardware I2C will only work in "transaction" mode
Please use the I2C CAL component Transaction..() API