Search found 14581 matches

by Benj
Tue Jan 16, 2024 11:25 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 5336370

Re: some problems with spi data transmission

Hello,

Trying to play catch up here but please can you send me your latest Master and Slave programs and I'll have a dig in and see if I can find out what's not working for you.
by Benj
Mon Jul 31, 2023 10:52 pm
Forum: General Programming
Topic: LP5030 problems
Replies: 4
Views: 7202

Re: LP5030 problems

Hello,

What version of Flowcode are you using and can you attach your program for us to look at.
by Benj
Fri May 26, 2023 2:09 pm
Forum: Flowcode V8
Topic: ESP8266, MQTT, ThingSpeak
Replies: 13
Views: 28749

Re: ESP8266, MQTT, ThingSpeak

Hello Abhi, Looks like a nice board, as it's connecting to the network it probably should be ok. Have you had to load the firmware on yourself to allow it to be a slave to the MCU instead of hosting it's own firmware? The MQTT component supports 32 byte name, password and ID so this hopefully should...
by Benj
Thu May 25, 2023 10:03 am
Forum: Flowcode V8
Topic: ESP8266, MQTT, ThingSpeak
Replies: 13
Views: 28749

Re: ESP8266, MQTT, ThingSpeak

In the MQTT Client component you maybe need to turn the Authentication property to On and then enter your thingspeak username and password. This is also interesting. ThingSpeak implements MQTT publish and subscribe functionality with QoS = 0. This "fire-and-forget" protocol means that your client do...
by Benj
Thu May 25, 2023 9:59 am
Forum: Flowcode V8
Topic: ESP8266, MQTT, ThingSpeak
Replies: 13
Views: 28749

Re: ESP8266, MQTT, ThingSpeak

Hello Abhi,

Investigating for you now.

Please do not share login details.
by Benj
Mon May 22, 2023 12:57 pm
Forum: Flowcode V8
Topic: Pi Touch screen programming
Replies: 3
Views: 8285

Re: Pi Touch screen programming

Hello, Do you know what controller the display uses and what style of interface the display is using to connect to the RPI pins? Do you have a link to the display? You may find that the Pi already has a driver to be able to control the display and then you can simply use the existing GLCD RPI compon...
by Benj
Tue Mar 28, 2023 2:27 pm
Forum: Bug reports
Topic: PIC16F15354 - Non-working I2C & 24C16 Macros
Replies: 11
Views: 20672

Re: PIC16F15354 - Non-working I2C & 24C16 Macros

Have you applied the latest files and fixes from here?
viewtopic.php?f=63&t=19743

If not then certainly that's worth doing.
by Benj
Tue Mar 14, 2023 9:27 pm
Forum: Formula AllCode
Topic: Formula AllCode Expansion ports
Replies: 2
Views: 11905

Re: Formula AllCode Expansion ports

Hello, I'm assuming your using the expansion numbering from here. https://www.matrixtsl.com/resources/files/misc/FA_Expansion.jpg To set the pin to an output you probably need to call this. ExpDDR(bitnumber,direction) bitnumber would be 8 for IO pin 8 on the FA_Expansion image and direction would be...
by Benj
Tue Mar 14, 2023 10:14 am
Forum: E-blocks
Topic: Interfacing flowcode program on adruino BL0055 eblock2 board
Replies: 9
Views: 19357

Re: Interfacing flowcode program on adruino BL0055 eblock2 board

Hello, To program the Arduino boards you need to plug the USB B cable into the arduino itself, it cannot be programmed via the E-block. The arduino device should appear under the Ports section of device manager. In Flowcode select the port inside Build -> Project Options, then use the Build -> Compi...
by Benj
Wed Mar 08, 2023 6:03 pm
Forum: Bug reports
Topic: PIC16F15354 - Non-working I2C & 24C16 Macros
Replies: 11
Views: 20672

Re: PIC16F15354 - Non-working I2C & 24C16 Macros

Hello San,

Please can you attach your program so we can see what you're doing. Do you have external pull up resistors on the SCL / SDA pins?
by Benj
Thu Feb 09, 2023 11:32 am
Forum: Flowcode V6
Topic: Current LCD 4X20 fluctuation
Replies: 21
Views: 54730

Re: Current LCD 4X20 fluctuation

Hello, I've had an email regarding this problem and so I thought I would copy the email reply here too for completeness. Looking at the project the first thing that jumps out is the pot_ptr_black Acquisition cycles is set to 1, this is the time to allow the ADC capacitor to charge before doing a con...
by Benj
Mon Jan 16, 2023 4:16 pm
Forum: Flowcode V8
Topic: Migration from PIC16F18345 to PIC16F18444
Replies: 4
Views: 9938

Re: Migration from PIC16F18345 to PIC16F18444

Hopefully solved for you now via the Help -> Check for updates.
by Benj
Thu Jan 12, 2023 6:48 pm
Forum: Flowcode V8
Topic: Migration from PIC16F18345 to PIC16F18444
Replies: 4
Views: 9938

Re: Migration from PIC16F18345 to PIC16F18444

Hello Fernando,

Investigating now for you, hopefully should be a quick one to resolve.
by Benj
Thu Jan 12, 2023 6:45 pm
Forum: Flowcode V8
Topic: Timers in 18F27K42
Replies: 2
Views: 7389

Re: Timers in 18F27K42

Hello Abhi,

Many thanks for letting us know, Hopefully should be resolved for you now via the library updates.
by Benj
Tue Nov 29, 2022 10:16 am
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Hello,

Yes that's correct.
by Benj
Mon Nov 28, 2022 6:04 pm
Forum: Flowcode V8
Topic: C-code->how to add micros() function?
Replies: 2
Views: 7169

Re: C-code->how to add micros() function?

Hello,

Looks like you can simply use the Timer component available under data->storage to do a similar thing and get the time in microseconds. Then no C code nessisary :D
by Benj
Fri Nov 25, 2022 2:01 pm
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Hello, may I take that file - and stick it into the V8 Sorry this likely won't work, the easiest way to use in v8 would just be to use the SPI master component, the device is very simple to control. Initialise the SPI master component and then when you want to adjust the pot do this. Spi.jpg The QUA...
by Benj
Fri Nov 25, 2022 1:21 pm
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

The new component is now available in v9. You can get the new components by clicking on Help -> Library UPdates and then changing Files in use to Full Database.

Let us know if you have any problems.
by Benj
Fri Nov 25, 2022 1:02 pm
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

I think I may now be seeing the problem, the existing MCP41XX component is for the four digit MCP parts e.g. the MCP4131. It looks like we need a new component for the MCP41XXX devices as their command set is quite a bit different. I'll create a new component for v9 and hopefully that should allow y...
by Benj
Fri Nov 25, 2022 10:48 am
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Digital pot arrived today so will have a go at getting it working for you.
by Benj
Wed Nov 23, 2022 11:31 am
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Digital pot still not arrived yet, I'll chase it up with the purchasing team.
by Benj
Fri Nov 18, 2022 10:44 am
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Assuming it's a quadrature encoder there is a component to help you with this. This wiki page has examples you can refer to. https://www.matrixtsl.com/wiki/index.php?title=Component:_Encoder_Rotary_(Inputs:_General) Here is a basic schematic for wiring the encoder to the micro to provide a bit of fi...
by Benj
Thu Nov 17, 2022 10:57 am
Forum: General Programming
Topic: MCP41010 Digital Pot
Replies: 36
Views: 92518

Re: MCP41010 Digital Pot

Hello,

We don't seem to have one of these devices handy at the moment but I have ordered one this morning and it should be with us early next week. If I can find a problem then I will fix it in both v9 and v8. Hope this helps.
by Benj
Fri Nov 11, 2022 12:47 pm
Forum: Flowcode V8
Topic: SPI module as a slave
Replies: 2
Views: 6706

Re: SPI module as a slave

Hi Bruno, First I would do a 1 second flasher test just to confirm you are running at the top speed of 64MHz. It could be the device is running slower then you think. If the device is running at the right speed then what rate is the master sending out the SPI, could this be slowed down? I have devel...
by Benj
Wed Oct 12, 2022 12:00 pm
Forum: Flowcode V8
Topic: Change UART Properties
Replies: 4
Views: 11317

Re: Change UART Properties

Hello Abhi, If you want to do the fix using C code then you can add this line to a C-icon after initialising the Modbus component. Odd parity on UART channel 1 U1CON0 = U1CON0 | 0x02; Even parity on UART channel 1 U1CON0 = U1CON0 | 0x03; Two Stop bits on UART channel 1 U1CON2 = U1CON2 | 0x30; For ot...