Search found 263 matches

by chipfryer27
Sun Jun 06, 2021 9:51 pm
Forum: Flowcode V6
Topic: Unable to get Bluetooth to work correctly
Replies: 2
Views: 80

Re: Unable to get Bluetooth to work correctly

Hi Another airport another bit of time to kill. Again sorry to be brief due to travel. Further to previous are you familiar with the Circular Buffer component? If not then you should look it up in the Help / Wiki / Forum pages. As mentioned earlier, I use an interrupt to detect when I receive, then ...
by chipfryer27
Sun Jun 06, 2021 12:47 pm
Forum: Flowcode V6
Topic: Unable to get Bluetooth to work correctly
Replies: 2
Views: 80

Re: Unable to get Bluetooth to work correctly

Hi Sorry to be brief as I'm traveling. I see in your Monitor Location's Main Loop you are calling many Macro's, which take time to process, including a Bluetooth Rx Byte. What happens if you receive a byte when your loop is busy elsewhere? Assuming I've setup whatever comms device I'm using correctl...
by chipfryer27
Sat May 29, 2021 9:35 am
Forum: Flowcode V8
Topic: Simple i2c
Replies: 2
Views: 277

Re: Simple i2c

Hi

I2C isn't usually too troublesome. Are you using pull ups on the SDA/ SCL lines and keeping track lengths / connections short?

Regards
by chipfryer27
Sun Mar 21, 2021 5:28 pm
Forum: Flowcode V8
Topic: Home Automation/MQTT
Replies: 2
Views: 425

Re: Home Automation/MQTT

Hi

I just opened up a version of FC7 and the MQTT client was there. I upgraded components and now it's gone.... I hope this is an oversight by Matrix.

Incidentally FC9 has in addition to the MQTT client component an IoT Made Easy component although I haven't yet tried it.

Regards
by chipfryer27
Fri Mar 19, 2021 7:22 am
Forum: General Programming
Topic: Analog Multiplexer for ADC Stm32f103c8t6
Replies: 3
Views: 1560

Re: Analog Multiplexer for ADC Stm32f103c8t6

Hi

Following on from Leigh, this gives some examples of what you are trying to achieve.

https://ocw.mit.edu/courses/media-arts- ... 2_bias.pdf

Regards
by chipfryer27
Thu Mar 18, 2021 12:45 pm
Forum: General Programming
Topic: Help for flowchart for it
Replies: 7
Views: 1587

Re: Help for flowchart for it

Hi In your previous chart you used an Interrupt call to read the buttons but I thought you would have problems with that. Instead of using an interrupt, you could poll the status of the buttons in your Main loop and call your Macro if any were active. In your Macro you are waiting 50mS before pollin...
by chipfryer27
Sun Mar 14, 2021 8:16 pm
Forum: User Components
Topic: Building Components - Step by Step Guide
Replies: 31
Views: 21767

Re: Building Components - Step by Step Guide

Hi Dave Thanks for posting the document again. The original, and subsequent ones never opened properly for me due to fonts and what not. Couldn't open in Acrobat or Foxit or anything. Large chunks would be missing. This opens perfectly and I can now see why it was praised so highly. A good job well ...
by chipfryer27
Sun Mar 14, 2021 12:25 am
Forum: Flowcode V8
Topic: HT16K33 fault stops program execution
Replies: 11
Views: 844

Re: HT16K33 fault stops program execution

Hi Following on from Leigh, I googled that Arduino as I'm not too familiar with it (but I still intend to dabble) and it appears (depending on posts) it has it's own onboard i2c pullups independent to sensor/shield. However many posts on forums talk of instability and lockup with i2c much as you are...
by chipfryer27
Sat Mar 13, 2021 11:35 pm
Forum: Flowcode V8
Topic: 4-Wire Fan PWM
Replies: 24
Views: 1653

Re: 4-Wire Fan PWM

Hi Derrihj Not sure I have the latest version of your code / chart but in mine you seem to be multiplexing the three LED displays by common cathode. However you have enable pins for Seg1 and Seg2 (albeit with the issues using RA5 mentioned earlier) but I don't see any enable for Seg0. This means it ...
by chipfryer27
Sat Mar 13, 2021 10:56 pm
Forum: General Programming
Topic: Help for flowchart for it
Replies: 7
Views: 1587

Re: Help for flowchart for it

Hi Mossana I've looked through your chart but I'm not sure I completely understand exactly what you are trying to do, so I hope this is of help. You mentioned earlier that it doesn't flash. As far as I can see it is because the Macro in your chart isn't called. As an example I have put a Macro call ...
by chipfryer27
Fri Mar 12, 2021 1:29 pm
Forum: General Programming
Topic: Help for flowchart for it
Replies: 7
Views: 1587

Re: Help for flowchart for it

Hi I have only had a quick look but if you are referring to your flasher macro, I don't see a Macro Call for such. I see you are using an interrupt to detect a button press. Nothing wrong with this approach but interrupts are handled quickly and buttons "bounce" before settling. This means that your...
by chipfryer27
Fri Mar 12, 2021 12:27 pm
Forum: Flowcode V8
Topic: HT16K33 fault stops program execution
Replies: 11
Views: 844

Re: HT16K33 fault stops program execution

Hi

It's been a while since I used i2c but doesn't the transmitbyte command return an answer (0/1).

If the danger is the target being inadvertently unplugged, perhaps first send a "test" byte and if no reply branch to an error handling routine?

Regards
by chipfryer27
Fri Mar 12, 2021 9:55 am
Forum: General Programming
Topic: Help for flowchart for it
Replies: 7
Views: 1587

Re: Help for flowchart for it

Hi I would recommend you have a look through the help examples and spend a little time on the wiki pages. Below is a link to the Getting Started Guide and also to the 7-segment entry. https://www.matrixtsl.com/resources/files/misc/Flowcode8_GettingStartedGuide.pdf https://www.matrixtsl.com/wiki/inde...
by chipfryer27
Thu Mar 11, 2021 11:28 pm
Forum: Flowcode V8
Topic: 4-Wire Fan PWM
Replies: 24
Views: 1653

Re: 4-Wire Fan PWM

Hi Derrihj Just noticed that your LCD is sharing pins with the PWM and other components. This may work in simulation but not in hardware. I'm guessing you added it for testing / simulating and it isn't actually in your hardware layout. Also you have an issue or so with the 3 x 7-Segment LED displays...
by chipfryer27
Thu Mar 11, 2021 9:43 pm
Forum: Flowcode V8
Topic: 4-Wire Fan PWM
Replies: 24
Views: 1653

Re: 4-Wire Fan PWM

Hi Derrihj

I have a couple of those chips kicking around and I'll see what I get with your code. Hope to get to it tomorrow but it may get pushed to the weekend.

Regards
by chipfryer27
Thu Mar 11, 2021 7:57 pm
Forum: Flowcode V8
Topic: HT16K33 fault stops program execution
Replies: 11
Views: 844

Re: HT16K33 fault stops program execution

Hi I don't know your processor or much about that controller but from the sounds of it then it may benefit from using a Watchdog Timer (WDT). If enabled then you have to insert instructions to reset the WDT every so often within your program, which FC can handle. If you don't reset or if your progra...
by chipfryer27
Mon Mar 08, 2021 9:45 pm
Forum: General Programming
Topic: Help
Replies: 2
Views: 1284

Re: Help

Hi In your other program, TransStan_ATMEGA8, I'm not really sure I understand what you are trying to achieve. Your program seems to set a few variables then jumps to a Macro. Within that Macro you have a Loop but no apparent way to exit the Loop. Also, you have used the LCD component Macro "Start" n...
by chipfryer27
Sun Mar 07, 2021 12:39 pm
Forum: General Programming
Topic: Help
Replies: 2
Views: 1284

Re: Help

Hi I have downloaded your project and in the "Count_Stepper18" chart and I think you have a couple of things to check. First is that you have the chip running on it's internal oscillator at 4MHz but you have no "C-code" in your chart to enable this. Although under Build > Project Options > Configure...
by chipfryer27
Sun Feb 14, 2021 10:02 pm
Forum: Feature Requests
Topic: Raspberry Pi Pico
Replies: 3
Views: 388

Re: Raspberry Pi Pico

Hi I've only just started with FC v9 (have every version since v3) and the Pi family. Basically I'm now exploring Pi as I got a free Pico board with a recent edition of HackSpace. Starting with a SoC Mk14 circa '77 I never thought I'd ever get a free computer in a magazine <s> FC doesn't specificall...
by chipfryer27
Thu Feb 04, 2021 2:35 pm
Forum: Forums d'aide en français
Topic: arduino mcp2515 conversion de l'ide a flowcode
Replies: 1
Views: 1113

Re: arduino mcp2515 conversion de l'ide a flowcode

Salut Désolé, Google traduit <s> Je ne suis pas trop familier avec CAN ou Arduino. Il semble que vous utilisez un Nano. Dans le schéma, D2 se connecte à la broche INT MCP2515. D2 est également la broche INT0. Dans Flowcode, si vous cliquez sur Afficher >> Puce, vous pouvez voir toutes les affectatio...
by chipfryer27
Sat Jan 23, 2021 2:36 pm
Forum: Flowcode V6
Topic: Problème interruption Rx UART1 sur PIC18F46K22.
Replies: 1
Views: 296

Re: Problème interruption Rx UART1 sur PIC18F46K22.

Salut Olivier Désolé pour mon français. Google Traduction <s> En regardant votre Flowcode, je ne sais pas comment vous sauriez s'il ne fonctionne pas. Si je lis correctement: - Vous réglez votre horloge Vous initialisez l'UART Vous activez l'interruption sur le RXin Vous entrez ensuite une boucle po...
by chipfryer27
Sat Jan 23, 2021 9:45 am
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 19
Views: 1573

Re: MCP3201 12-Bit ADC Component

Hi Abhi

You are very welcome. Glad to have been of some help.

Regards
by chipfryer27
Fri Jan 22, 2021 10:22 am
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 19
Views: 1573

Re: MCP3201 12-Bit ADC Component

Hi Abhi In my example I'm connected to a pic16F1939 but it should work on pretty much any as long as a few parameters are met. I'm using the Master SPI component connected to Channel 1, with the following connections: MOSI = Port C5 MISO = Port C4 CLock = Port C3 CS/SS = Port C2 (I didn't connect MO...
by chipfryer27
Thu Jan 21, 2021 4:37 pm
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 19
Views: 1573

Re: MCP3201 12-Bit ADC Component

Hi I've downloaded both Ben's example but I think his calculation has a flaw (I question that statement myself even as I type). I see he uses two different ways to capture the data than I do. I simply used GetByteArray but more than one way to skin a cat. Feeding my "raw data" into his calculation I...
by chipfryer27
Thu Jan 21, 2021 2:49 pm
Forum: Flowcode V8
Topic: MCP3201 12-Bit ADC Component
Replies: 19
Views: 1573

Re: MCP3201 12-Bit ADC Component

Hi Abhi I got a couple of those chips the other day and I have mine working fine. I didn't use Ben's example code as I wanted to try it for myself first and see my results before looking at Ben's code (which would most likely work better than anything I could create). Looking at the data sheet it in...