Search found 14581 matches

by Benj
Fri Jun 25, 2021 12:59 pm
Forum: General Programming
Topic: Recalculation of impulses
Replies: 8
Views: 8563

Re: Recalculation of impulses

Hello,

in your code you have point = point + 3/4

point is a byte and 3/4 in integer maths will be 0.

I've changed your example so that it uses a counter and simply doesn't output every fourth pulse.
convert_8_to_6_ATTiNY13.fcfx
(9.93 KiB) Downloaded 186 times
by Benj
Fri Jun 18, 2021 1:00 pm
Forum: Flowcode V8
Topic: Who uses cheap 433Mhz modules?
Replies: 12
Views: 14808

Re: Who uses cheap 433Mhz modules?

The HC-12 look interesting, I might get myself a few to have a play with.
by Benj
Thu Jun 17, 2021 11:51 am
Forum: Flowcode V8
Topic: Who uses cheap 433Mhz modules?
Replies: 12
Views: 14808

Re: Who uses cheap 433Mhz modules?

I had great success using these and they have built in detection to ensure that the data is valid before presenting it on the receiver. https://www.rfsolutions.co.uk/radio-modules-c10/alpha-c80 Unfortunatley the smaller modules at least seem to be end of life, I think in part because things like thi...
by Benj
Thu Jun 17, 2021 11:44 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 28
Views: 39395

Re: FAT SD Card Data Logger

Hello, I've found what might be causing the problem. The RMC message that contains the data validity flag is usually $GPRMC but in this case it is $G N RMC. I've updated the component to allow for this and hopefully that should solve the problem for you. The other messages all seem to be ok so finge...
by Benj
Thu Jun 17, 2021 10:49 am
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 28
Views: 39395

Re: FAT SD Card Data Logger

Hello, What are you using as your power source for the GPS? Could it be that the current is too low and this is causing your first module to give unreliable data and your second module not to boot up at all? With projects like this I have used Li-ion and Lipo cells with a lot of success. I've also u...
by Benj
Thu Jun 17, 2021 10:42 am
Forum: General Programming
Topic: Recalculation of impulses
Replies: 8
Views: 8563

Re: Recalculation of impulses

Hello,

How's this?
convert_8_to_6_ATTiNY13.fcfx
(9.49 KiB) Downloaded 174 times
by Benj
Wed Jun 09, 2021 12:13 pm
Forum: General Programming
Topic: Recalculation of impulses
Replies: 8
Views: 8563

Re: Recalculation of impulses

Hi Alexander,

Please can you provide more information which document are you referring to?
by Benj
Wed Jun 09, 2021 12:11 pm
Forum: Flowcode V8
Topic: ESP8266 REQUEST NTP SERVER DATE & TIME
Replies: 1
Views: 1405

Re: ESP8266 REQUEST NTP SERVER DATE & TIME

Hello, I beleive in this document is some theory on how to do the request etc though it's not specifically tailored to the ESP8266. https://www.matrixtsl.com/resources/files/datasheets/CP4895-01%20Internet.pdf The associated files are here. https://www.matrixtsl.com/resources/files/software/examples...
by Benj
Wed Jun 09, 2021 12:07 pm
Forum: Flowcode V8
Topic: Error message with I2C slave and 32MX220
Replies: 2
Views: 1490

Re: Error message with I2C slave and 32MX220

Hello,

I'm afraid we do not currently support the I2C Slave on the PIC32 range of devices. It's something I can look into for you if you need this functionality.
by Benj
Thu Jun 03, 2021 12:47 pm
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 28
Views: 39395

Re: FAT SD Card Data Logger

Hi George,

What speed is you crystal on your board? If this doesn't match the setting in the Flowcode project options then this could be the cause of the problem.

Does it ever start logging with the L76X, i.e. tell you the data is accurate?
by Benj
Tue Jun 01, 2021 10:29 pm
Forum: General Programming
Topic: Encoder Dc control help for INT_RB
Replies: 1
Views: 3856

Re: Encoder Dc control help for INT_RB

Hello,

I can create you a Flowcode 9 program in a few minutes that would do the job for you if you like.
by Benj
Fri May 28, 2021 1:05 pm
Forum: General Programming
Topic: ESP32 OLED display via SPI
Replies: 6
Views: 7540

Re: ESP32 OLED display via SPI

Hello,

Pins GPIO34 to 39 are input only and so are not capable of digital output. Can you reconnect the display to other Pins, e.g. on PORTA or PORTB 0 to 1.
by Benj
Tue May 25, 2021 11:18 pm
Forum: Flowcode V8
Topic: SCADA: Send string or Number
Replies: 2
Views: 1608

Re: SCADA: Send string or Number

Hi Bruno,

Here's an example to help get you started.
SCADA_User_Input.fcsx
(10.3 KiB) Downloaded 155 times
by Benj
Tue May 25, 2021 2:41 pm
Forum: Formula AllCode
Topic: IR sensors with flowcode 9
Replies: 4
Views: 7991

Re: IR sensors with flowcode 9

Hello,

Many thanks for letting us know on this one, sorry it took a while for us to replicate and then find the cause but this has now been resolved in the latest v9 and v8 updates.
by Benj
Tue May 25, 2021 9:41 am
Forum: General Programming
Topic: ESP32 OLED display via SPI
Replies: 6
Views: 7540

Re: ESP32 OLED display via SPI

Hello,

Please can you post your program so far and I'll have a quick look for you.

Also thanks for the info regarding the tooltip on the reset pin.
by Benj
Fri May 14, 2021 10:04 am
Forum: Formula AllCode
Topic: IR sensors with flowcode 9
Replies: 4
Views: 7991

Re: IR sensors with flowcode 9

Hello Andrew,

Many thanks for letting us know I am now in the process of investigating this one for you. There seems to be some kind of problem relating to the choice of MCU target which may or may not be causing the problem.
by Benj
Thu May 13, 2021 5:53 pm
Forum: 8-Bit PIC
Topic: FAT SD Card Data Logger
Replies: 28
Views: 39395

Re: FAT SD Card Data Logger

Hi George,

Please can you post your flowcode project file and I'll have a look at this for you. The gps output should be fairly standard but i will check the file you sent to make sure.
by Benj
Thu May 13, 2021 5:48 pm
Forum: Flowcode V7
Topic: Controlling many outputs with 74HC595
Replies: 7
Views: 5440

Re: Controlling many outputs with 74HC595

Hi Carl I use shift registers for my led cube project so these certainly are workable. https://www.instructables.com/Infinite-RGB-LED-Cube/ How often do you need the leds to refresh and do you need them to be dimmable? Another more modular option might be output expanders. Charlieplexing might also ...
by Benj
Wed Apr 21, 2021 1:57 pm
Forum: Feature Requests
Topic: Improvements for RS232 serial component
Replies: 1
Views: 3533

Re: Improvements for RS232 serial component

Hello Fernando, Thanks for the suggestions. The use of a FIFO buffer would rely on the interrupt being switched on behind the scenes. I beleive this is how Arduino do it, it's certainly something we can consider adding as it would simplify things for a user not used to adding their own interrupt. If...
by Benj
Wed Apr 21, 2021 1:53 pm
Forum: Flowcode V8
Topic: Can V8 simulate RXINT?
Replies: 1
Views: 1795

Re: Can V8 simulate RXINT?

Hello Fernando, No sorry at the moment v8 cannot simulate the RXInt, a workaround is to call the macro as part of your main program loop. You can use the IsSim component to decide if you are in simulation mode or not. In v9 we have more capability to allow us to do this via new simulation API comman...
by Benj
Wed Apr 21, 2021 9:38 am
Forum: Flowcode V7
Topic: FC7 project won't compile with Win10(64) + xc8 2.31
Replies: 3
Views: 4170

Re: FC7 project won't compile with Win10(64) + xc8 2.31

Excellent thanks for letting us know :D
by Benj
Wed Apr 21, 2021 9:37 am
Forum: Electronics products
Topic: How to test ceramic capacitor
Replies: 1
Views: 3212

Re: How to test ceramic capacitor

Hello,

How about something like this?
https://www.flowcode.co.uk/forums/viewt ... ?f=9&t=412
by Benj
Mon Apr 19, 2021 11:29 pm
Forum: General Programming
Topic: ENC28J60
Replies: 17
Views: 17175

Re: ENC28J60

Hello, I'm guessing the MySQL database is running on a LAMP type server (Linux, Apache, MySQL, PHP). I would setup a PHP page that logs data to the MySQL from parameters that are passed to the page. You can then pass parameters to the page by using the URL and doing a page request using the ENC28J60...
by Benj
Mon Apr 19, 2021 12:33 pm
Forum: General Programming
Topic: Draw a circle using 2 stepper motors
Replies: 3
Views: 5713

Re: Draw a circle using 2 stepper motors

Hello, Some G code converters will simply use linear interpolation making the circle up of lots of individual straight lines. However some more advanced G code converters will use circular interpolation. It's very similar to linear interpolation but uses SIN and COS with a radius and a central offse...
by Benj
Mon Apr 19, 2021 12:26 pm
Forum: General Programming
Topic: ECIO40P16 and dsPIC33EP256MU806 chip
Replies: 9
Views: 16077

Re: ECIO40P16 and dsPIC33EP256MU806 chip

Aha well done glad you got it working. In our bootloader firmware we check to see if a voltage on an input pin used as a USB detect pin is present when starting. The pin is pulled low by a resistor and connected to the VUSB pin from the USB socket. If the voltage is not present then we jump directly...