Search found 14218 matches

by Benj
Thu Sep 17, 2020 5:00 pm
Forum: Flowcode V8
Topic: ESP8266 Module with Alexa & Google Assitant
Replies: 3
Views: 144

Re: ESP8266 Module with Alexa & Google Assitant

Hello, Here's a quick example for you to play with, let us know how you get on. MQTT_ESP8266.fcfx You can connect to the Thingspeak MQTT servers or you can create your own MQTT server using something like Mosquitto on a raspberry pi. https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on...
by Benj
Thu Sep 17, 2020 2:28 pm
Forum: Flowcode V8
Topic: PIC16LF15376 Sleep and interrupt issues
Replies: 2
Views: 66

Re: PIC16LF15376 Sleep and interrupt issues

Hello, Looking at the datasheet I wonder if enabling the peripheral interrupts would make any difference. Looking at the block diagram it suggests it's not required but it's worth a go to see if it improves things. Using a C icon add this to the start of your program. st_bit(INTCON,PEIE); This is au...
by Benj
Thu Sep 17, 2020 10:07 am
Forum: Bug Reports
Topic: PIC32MZ1024EFF064 I2C Definition Problem
Replies: 3
Views: 21

Re: PIC32MZ1024EFF064 I2C Definition Problem

Thanks for letting us know. I have hopefully now fixed the problem and pushed the change to the update system.
by Benj
Thu Sep 17, 2020 9:45 am
Forum: Flowcode V8
Topic: PIC24fj256GA406 RS-485 Based Modbus RTU
Replies: 6
Views: 120

Re: PIC24fj256GA406 RS-485 Based Modbus RTU

Hello,

Maybe worth increasing the reply delay to ensure the transmit state has time to ripple through to the master?

In your Modbus_Slave_2 macro each write is to the same holding register 0.
by Benj
Tue Sep 15, 2020 11:07 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 131

Re: ARRAYS in supplementary code

This should work, It's what the Lookup table component generates.

Code: Select all

const 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 Benj
Tue Sep 15, 2020 4:05 pm
Forum: Flowcode V8
Topic: ARRAYS in supplementary code
Replies: 8
Views: 131

Re: ARRAYS in supplementary code

Hello,

Can you use the LUT component available under storage, this effectively creates a ROM based array you can call directly within the flow chart.
by Benj
Tue Sep 15, 2020 4:04 pm
Forum: Flowcode V5
Topic: Conversion rules float to/from unsigned integer
Replies: 10
Views: 4910

Re: Conversion rules float to/from unsigned integer

Hi Abhi,

Can you post your program and we will have a look for you.

the following lines might be better as

floattemp = float - FLOAT intwhole
floattemp = floattemp * 1000.0
by Benj
Tue Sep 15, 2020 12:40 pm
Forum: Flowcode V7
Topic: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC
Replies: 4
Views: 138

Re: CONNECT 2 SENSOR I2C_MASTER AT THE SAME PIC

Hello, Let me see if I'm reading this correctly. You would have a single PIC device with a connected display operating as the Master to two sensor devices. Yes this should work fine if either both sensors have different I2C addresses or they are on seperate I2C channel pins. Another thought I had wa...
by Benj
Tue Sep 15, 2020 12:02 pm
Forum: Feature Requests
Topic: Slave EtherCat
Replies: 5
Views: 106

Re: Slave EtherCat

Hi George, I have made a component I'm now fairly happy with, it works with the Easy CAT shield but will work on any target microcontroller. I've also been looking at open source master libraries that will run on a PC. Do you have a particular master controller in mind or is it speculation at the mo...
by Benj
Fri Sep 11, 2020 11:44 am
Forum: Flowcode V8
Topic: Analog input not working on PIC32MZ2048ecg100
Replies: 28
Views: 5341

Re: Analog input not working on PIC32MZ2048ecg100

Hello Stefan, This could mybe be an ANSEL register problem? Please can you try the following code in a C icon and see if it makes any difference. CHange the register name and bits to match the ADC inputs you're using in your program. ANSELBbits.ANSB0 = 1; ANSELBbits.ANSB1 = 1; ANSELBbits.ANSB2 = 1; ...
by Benj
Fri Sep 11, 2020 11:41 am
Forum: Bug Reports
Topic: MPU9250 results are not stable
Replies: 3
Views: 73

Re: MPU9250 results are not stable

Hello, Thanks for sharing your findings, the accelerometer does seem to be rather noisy. Have you tried turning down the sensitivity from +/-2G to say +/- 16G and seeing if you get more sensoble values. The compass initially looks bad but then sems to get much better and the gyro looks good. I wonde...
by Benj
Fri Sep 11, 2020 11:20 am
Forum: Flowcode V8
Topic: PIC32MX450
Replies: 4
Views: 122

Re: PIC32MX450

Hi Allen,

Aha thanks for letting us know, yes this is a bug in our definition file. I've now fixed it and will push the fix to the update system. You can get the fix by using the Help -> Check for updates menu.
by Benj
Fri Sep 11, 2020 11:09 am
Forum: Flowcode V8
Topic: SSD1322 Parallel Component Data Bus Question
Replies: 2
Views: 56

Re: SSD1322 Parallel Component Data Bus Question

Hello, You can use any I/O pin to drive the display. We could add a feature to the component to drive the data pins as a port byte and this would be a little bit faster. But currently the component does not have this feature so it won't make any difference. On a PIC32 I doubt you would see much of a...
by Benj
Fri Sep 11, 2020 11:06 am
Forum: Flowcode V8
Topic: PIC24fj256GA406 RS-485 Based Modbus RTU
Replies: 6
Views: 120

Re: PIC24fj256GA406 RS-485 Based Modbus RTU

Hello, Have you confirmed your hardware is setup and running at the correct frequency with a 1 second flasher test. You will need to do this to ensure your UART baud rates are correct. https://www.matrixtsl.com/wiki/index.php?title=One_second_LED_flasher The values you have assigned to the holding r...
by Benj
Fri Sep 11, 2020 10:32 am
Forum: Feature Requests
Topic: Slave EtherCat
Replies: 5
Views: 106

Re: Slave EtherCat

Hello, I'm thinking of supporting this Arduino shield, would that work for you. https://www.bausano.net/shop/en/home/1-arduino-ethercat.html I would also support the Easy Configurator software by allowing Flowcode to include the generated .bin and .h files. https://www.bausano.net/en/hardware/etherc...
by Benj
Thu Sep 10, 2020 9:38 am
Forum: Flowcode V8
Topic: Analog input not working on PIC32MZ EFx Device
Replies: 4
Views: 112

Re: Analog input not working on PIC32MZ EFx Device

Hello,

Yes that block diagram is very confusing but I beleive it is showing the ADC trigger pins and reference pins not the ADC input pins. ADC0 should be able to connect to all ADC input pins and then the result will go into the ADCDATA0 register.

Let me know regarding the ANSEL.
by Benj
Thu Sep 10, 2020 9:32 am
Forum: Flowcode V8
Topic: OLED with SSD1309 driver
Replies: 2
Views: 62

Re: OLED with SSD1309 driver

Hi Ronald,

It might just work and be compatible, it certainly shouldn't break anything.

Let us know how you get on and yes if you are having problems I'll share the source with you or help you to fix it so it works with the larger driver.
by Benj
Thu Sep 10, 2020 9:31 am
Forum: Flowcode V8
Topic: PIC32MX450
Replies: 4
Views: 122

Re: PIC32MX450

Hello ALlen, It seems it does work but you might have to force refresh the properties by changing another property after setting the channel, e.g. Use TX. Set the Use Tx to No and then back to Yes and the property list for the Remap pins should then refresh and give you the G0 option. It's a bug we ...
by Benj
Wed Sep 09, 2020 3:56 pm
Forum: Flowcode V8
Topic: ESP8266 Module with Alexa & Google Assitant
Replies: 3
Views: 144

Re: ESP8266 Module with Alexa & Google Assitant

Hi Karthick,

I'm currently investigating this for the ESP32 hardware but should also be possible via an ESP8266. We already have support for MQTT which is very powerful. For Alexa type stuff there is ITTT which we are also looking into.
by Benj
Wed Sep 09, 2020 3:21 pm
Forum: Feature Requests
Topic: Slave EtherCat
Replies: 5
Views: 106

Re: Slave EtherCat

Hi George,

Good suggestion thanks. I'll investigate for you, could be a nice one to add.
by Benj
Wed Sep 09, 2020 2:47 pm
Forum: Flowcode V8
Topic: SSD1963 simulation not working properly
Replies: 4
Views: 139

Re: SSD1963 simulation not working properly

Hello,

I've replicated the problem, started looking for you yesterday but then got pulled onto something else. I'll look again for you today.
by Benj
Wed Sep 09, 2020 2:43 pm
Forum: Flowcode V8
Topic: Analog input not working on PIC32MZ EFx Device
Replies: 4
Views: 112

Re: Analog input not working on PIC32MZ EFx Device

Hello, The chip has multiple analogue pins and multiple analogue to digital converters. Currently we only support converter channel 0 but this should work with any of the analogue pins. We specify the analogue pin here. ADCCON3bits.ADINSEL = Channel; //Select ADC Channel It does however look like we...
by Benj
Wed Sep 09, 2020 2:30 pm
Forum: Flowcode V8
Topic: STM8 range micros
Replies: 8
Views: 1131

Re: STM8 range micros

Hi Gavin,

Unfortunatley I beleive they require a different toolchain to the STM32 and different CAL code so adding support for them is still going to be a large undertaking.
by Benj
Tue Sep 08, 2020 12:25 pm
Forum: Freelance Embedded Engineers
Topic: CREATE A USB MASS STORAGE DEVICE USING AN STM32
Replies: 7
Views: 307

Re: CREATE A USB MASS STORAGE DEVICE USING AN STM32

Hello, We are investigating the problem for you. However what about this for an alternative. Use something like a USB to Serial IC such as a FTDI or similar, then connect this to a UART on the STM32 device and then stream in your configuration using either a serial emulator which can be used to send...
by Benj
Tue Sep 08, 2020 12:16 pm
Forum: Flowcode V8
Topic: STM8 range micros
Replies: 8
Views: 1131

Re: STM8 range micros

Hello, We are currently working on adding a new chip pack for Flowcode in the form of a ESP32 device. We are also working hard on a new major version. The STM8 devices do look good and we have some here, I'll make sure they are still on the list for a potential future chip pack and see if we can fin...