Search found 13763 matches

by Benj
Fri Jan 24, 2020 3:53 pm
Forum: Flowcode V7
Topic: 4 digit 7 segment not working
Replies: 4
Views: 45

Re: 4 digit 7 segment not working

I've exported the component for v7 for you as there wasn't too much to it. Hopefully it should work ok.

Simply copy to your "Flowcode V7\Components\" folder and restart Flowcode.

DigitDisplay.fcpx
(38.3 KiB) Downloaded 3 times


Let us know how you get on.
by Benj
Fri Jan 24, 2020 2:26 pm
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 3
Views: 36

Re: FLOAT to INT and back again.

If you wanted to convert floats to 4 bytes then you would use the SetFloat function to load in the float and then call the GetByte function four times with indexes 0-3. The icon of the component on the panel should show how the values interrelate. Type.jpg This topic should help if you want to do th...
by Benj
Fri Jan 24, 2020 2:13 pm
Forum: Flowcode V7
Topic: 4 digit 7 segment not working
Replies: 4
Views: 45

Re: 4 digit 7 segment not working

Hello, It sounds like you are using the standard 7-segment component. This is the one that comes on the combo board and previous E-blocks 1 boards. Instead in your program you need to use the 4-Digit Display Grove component. Comp.jpg If you need an example then let me know and I'll put one together ...
by Benj
Fri Jan 24, 2020 11:46 am
Forum: Flowcode V8
Topic: Leading a workshop for Flowcode
Replies: 6
Views: 72

Re: Leading a workshop for Flowcode

Hello, Sounds like an excellent plan 8) We have some bits here that might be useful. https://www.matrixtsl.com/flowcode/support/ Namely the getting started guide and the intro to microcontrollers programming. There are some E-blocks related examples here too which may be useful. https://www.matrixts...
by Benj
Fri Jan 24, 2020 11:06 am
Forum: Flowcode V8
Topic: Problem Compiling a Flowcode Project using SPI Slave module
Replies: 6
Views: 505

Re: Problem Compiling a Flowcode Project using SPI Slave module

Hello, Here are the steps you need to do to establish the slave functionality. 1) Initialise the SPI module in slave mode. Look at the various SPI registers and assign values to enable module in slave mode. 2) Enable an SPI interrupt to allow you to see when an SPI slave event has occurred. Look at ...
by Benj
Fri Jan 24, 2020 11:02 am
Forum: General Programming
Topic: FLOAT to INT and back again.
Replies: 3
Views: 36

Re: FLOAT to INT and back again.

Hello, Yes this is possible, are you using Flowcode and if so which version are you using. In Flowcode 8 there is a component that will do the conversion for you called type conversions available from the Data component category. For older versions you will have to use a C code icon to acheive the s...
by Benj
Thu Jan 23, 2020 4:52 pm
Forum: Flowcode V8
Topic: Problem Compiling a Flowcode Project using SPI Slave module
Replies: 6
Views: 505

Re: Problem Compiling a Flowcode Project using SPI Slave module

Hello,

Do you want to post the slave code you have so far and we will have a look and try to advise. In v5 you can access the registers by using lower case names in a c-code icon.

for example

Code: Select all

ssp1con = 0b01010101;
by Benj
Thu Jan 23, 2020 4:20 pm
Forum: Bug Reports
Topic: UART - software mode....????? what is the SECRET???
Replies: 6
Views: 80

Re: UART - software mode....????? what is the SECRET???

Hi Martin, Yes that might be a good way of doing it and would certainly be easier then assembler :D Using assembler I've got much closer but the numbers are still somewhat bizarre. This is now working well at various clock rates but still needs work to build into the UART component. I think I need t...
by Benj
Thu Jan 23, 2020 11:46 am
Forum: Bug Reports
Topic: UART - software mode....????? what is the SECRET???
Replies: 6
Views: 80

Re: UART - software mode....????? what is the SECRET???

Hmm investigating further things do seem a bit broken regarding the software UART. Increasing the clock speed is currently making the problem worse. In Pro XC8 anyway. I'll spend some time on this today and see if I can improve things. On inspection it looks like the micro second delay function in X...
by Benj
Thu Jan 23, 2020 10:42 am
Forum: Bug Reports
Topic: UART - software mode....????? what is the SECRET???
Replies: 6
Views: 80

Re: UART - software mode....????? what is the SECRET???

Hi Spencer, 8MHz is a bit slow for a software UART to generate reliable output at 9600 baud. Either increase the speed of the MCU or decrease the baud rate or both. Ideally 20MHz or faster. With BoostC used in Flowcode v6 and previous the timings were very predictable and easy to generate software U...
by Benj
Wed Jan 22, 2020 1:59 pm
Forum: General Programming
Topic: in circuit programming of ST micro using swim
Replies: 2
Views: 44

Re: in circuit programming of ST micro using swim

Hello, It sounds possible. I do something similar on the EB2 BL0061 board to program the on-board ST-ARM using it's built in bootloader. If you look at the EB2 datasheet then the schematic for the board is included there. I connect to the chip using SPI and also via UART for backup. The programming ...
by Benj
Wed Jan 22, 2020 11:31 am
Forum: Programming Tips & Tricks
Topic: WS2812 LED Flexible 32 x 8 grid
Replies: 14
Views: 1238

Re: WS2812 LED Flexible 32 x 8 grid

Thanks very much and glad you found it useful. Somehow I'm currently on the front page of Instructables as the first project. Time for a screenshot I think :wink: :lol: If anyone is interested and has an Instructables account then I would appreciate a vote, I'm currently entered in a competition the...
by Benj
Wed Jan 22, 2020 11:01 am
Forum: 8-Bit PIC
Topic: Pic12f683 - rs232 FL8 in target do not work
Replies: 7
Views: 63

Re: Pic12f683 - rs232 FL8 in target do not work

Hello,

In the C icon you have added the line of code inside the comments.

Code: Select all

/*
OSCCON = 0x70;
*/


Please change to just

Code: Select all

OSCCON = 0x70;
by Benj
Wed Jan 22, 2020 10:46 am
Forum: Bug Reports
Topic: Connection Points Bug
Replies: 7
Views: 160

Re: Connection Points Bug

Thanks Spencer,

Glad you're up and running again and thanks for letting us know. It certainly can be very frustrating when things suddenly stop working and you're not sure why.
by Benj
Wed Jan 22, 2020 10:43 am
Forum: Flowcode V8
Topic: SCADA and PC networkcard
Replies: 6
Views: 119

Re: SCADA and PC networkcard

That sounds even more interesting! The cameras sound impressive.

Is that for motion capture or VR type stuff?
by Benj
Tue Jan 21, 2020 1:05 pm
Forum: 8-Bit PIC
Topic: Pic12f683 - rs232 FL8 in target do not work
Replies: 7
Views: 63

Re: Pic12f683 - rs232 FL8 in target do not work

Hello, Flowcode v7 and v8 uses a different C compiler to v6 which is known to be better overall but can throw up some issues with tight loops such as the software UART. Please can you try running the chip at 8MHz instead of 4MHz. To do this simply add the following line of code in a C icon at the ve...
by Benj
Tue Jan 21, 2020 11:15 am
Forum: Feature Requests
Topic: T6963C macro FC7 does not work. FC8 works
Replies: 1
Views: 47

Re: T6963C macro FC7 does not work. FC8 works

Hello Angelo.

Thanks for letting us know. Please try this updated component by copying to your "C:\Program Files (x86)\Flowcode V7\Components" folder.

gLCD_T6963C.fcpx
(34.37 KiB) Downloaded 3 times


Hopefully it will solve the problem in v7.

Let us know how you get on.
by Benj
Mon Jan 20, 2020 5:09 pm
Forum: Flowcode V8
Topic: SCADA and PC networkcard
Replies: 6
Views: 119

Re: SCADA and PC networkcard

Great, glad it's working well for you. 5 network cards sounds interesting :wink:

Let us know how you're getting on with talking to the board.
by Benj
Mon Jan 20, 2020 5:07 pm
Forum: Formula AllCode
Topic: IR sensor exponential response
Replies: 12
Views: 62

Re: IR sensor exponential response

Hello, Does the "IR simulation mode" parameter also work with line following sensors or only with distance sensors? For now I have only edited the simulation IR distance sensors and not touched the IR line sensor values. What documents, video or tutorial help you understand how to modify a...
by Benj
Mon Jan 20, 2020 3:01 pm
Forum: Flowcode V8
Topic: Raspeberry webserver
Replies: 7
Views: 144

Re: Raspeberry webserver

Sorry URL fixed now :D
by Benj
Mon Jan 20, 2020 2:49 pm
Forum: Formula AllCode
Topic: IR sensor exponential response
Replies: 12
Views: 62

Re: IR sensor exponential response

Hmm,

I only edited the standard component, didn't have to touch the API version of the component?

Here's the API version atm.
FormulaAllCodeAPI.fcpx
(73.89 KiB) Downloaded 3 times
by Benj
Mon Jan 20, 2020 2:25 pm
Forum: Formula AllCode
Topic: IR sensor exponential response
Replies: 12
Views: 62

Re: IR sensor exponential response

Aha ok thanks.

I tried your program again and the FA component appears as a white square but it does have the new property.

Adding the component again from the menu allows it to work. Hmm odd.

Can you create a new program and does it appear then?

Error.jpg
Error.jpg (44.41 KiB) Viewed 48 times
by Benj
Mon Jan 20, 2020 2:19 pm
Forum: Formula AllCode
Topic: IR sensor exponential response
Replies: 12
Views: 62

Re: IR sensor exponential response

Hello,

Hmm. It seems to be working well for me here. I'll do some checking.

Can you say what you mean by:

I unlocked the file


Do you mean downloaded?
by Benj
Mon Jan 20, 2020 1:56 pm
Forum: Formula AllCode
Topic: IR sensor exponential response
Replies: 12
Views: 62

Re: IR sensor exponential response

Right I've made the changes you suggested and hopefully this will now do as you want. The default is the standard linear mode but if you change the property to exponential then it should allow you to enter A and B values. I've also added the initial calculations you mentioned but not made these conf...
by Benj
Mon Jan 20, 2020 1:31 pm
Forum: Flowcode V8
Topic: Real time Hourly Device Control
Replies: 12
Views: 218

Re: Real time Hourly Device Control

Hello, The baud rate for DS3231 here should be set to what 100KHz,400KHz or 1MHz for the Ds3231 to work perfectly? If you're not bothered about throughput then the slower you clock the I2C the more reliable and immune to noise it should be so for your application I would go for 100KHz. However readi...