Search found 198 matches

Return

by mnf
Fri Jun 02, 2017 4:37 pm
Jump to forum
Jump to topic

Re: I2C Woes

I can post he code this evening if it will help, but the image above is all of it! Just wanted to see if comms working with a minimal example before committing too much time. Added: Tried a general broadcast (address 0) followed by 0x6f which worked (ie the BlinkM stopped it's routine) when run from...
by mnf
Thu Jun 15, 2017 9:18 pm
Jump to forum
Jump to topic

Re: NRF24L01 component problem

Thanks,

Now up and running. I also found I needed to set the prescaler to 4 (or more).

I have attached my simple transmit and receive programs - transmit a block of 32 bytes data, receive prints data to UART

nrfsend.fcfx

nrfrcv.fcfx
by mnf
Sat Jun 17, 2017 9:16 am
Jump to forum
Jump to topic

Re: I2C Woes

Turning on the inbuilt pullup resistors also works. Simply writing high to SDA and SCL pins (PC3 and PC4) after initialising the i2c works. I've attached my Flowcode - note that this is also using analog pins A2 and A3 to power the blinkm module as this was a very quick test and it was easier to plu...
by mnf
Sat Jul 08, 2017 9:37 pm
Jump to forum
Jump to topic

Re: MFRC 522_V2 RF ID read working but ID key false

This topic is a bit old but the RFID_MFRC522_v2 component now works well: Using an Arduino and connecting: D9 to RST, D10 to SDA, D11 to MOSI, D12 to MISO and D13 to SCK. The following flowcode reads and sends the key_id and the first data block of 16 bytes to the UART. Note that the documentation s...
by mnf
Sun Jul 16, 2017 12:14 pm
Jump to forum
Jump to topic

Features request

After using Flowcode 7 for a couple of months - here's my 5 cents worth of ideas: Some may have been mentioned before. 1) Auto updates (rather than having to find, download and unzip) - if Steam can do it for games and software! Backward comparability is maybe a sticking point. New components instal...
by mnf
Mon Jul 31, 2017 11:05 pm
Jump to forum
Jump to topic

Re: RTC Component

Thanks, Certainly seems to work perfectly for reading and writing to RTC - tested with DS1307 and DS3231 (on Arduino ATMega328p using an Uno R3 and a Nano - I'd also rather like to get it working with an ATTiny85 - but that's a project for another day). Haven't tested all the macros - I'll have a pl...
by mnf
Sat Sep 09, 2017 8:56 pm
Jump to forum
Jump to topic

Re: FC V8 new chipset Tensilica or esp8266 / esp32

I've had a very brief play with both a cheapo ESP8266 unit (8 pins) and a NodeMCU unit with more memory (and pins). I can see them being a fantastic development for IOT devices - wireless, powerful and cheap - one batch I got were <£1 each from China. There are reports of the flash memory not being ...
by mnf
Thu Sep 14, 2017 10:12 pm
Jump to forum
Jump to topic

MAX7219 component

So, inspired by the instructions on component creation - thought I would have a go. My first thought was to work with an i2c LCD display based on the PCF8574A - but this was a bit daunting. So had a go at getting a MAX7219 based 8 character LED to work - with the ultimate aim of creating a component...
by mnf
Wed Sep 20, 2017 4:35 pm
Jump to forum
Jump to topic

Re: MAX7219 component

Powering off (the Arduino) worked - it's now displaying the right numbers in the right places. Hurrah!
by mnf
Fri Sep 29, 2017 10:57 pm
Jump to forum
Jump to topic

Re: MAX7219 component

One last update. Tested and working with an 8 matrix setup (ie 64 x 8 pixel). The scrolling text looks particularly good (if I say so myself). Rewrote and some tidying to allow more data to be transferred at a time (ie 8 bytes rather than 1 byte and 7 noops) and treating the display as a single enti...
by mnf
Mon Oct 09, 2017 8:25 am
Jump to forum
Jump to topic

Fingerprint scanner

I have GT-511C1R (just the basic 20 print module - there is also a more expensive 200 print version which has an identical interface) See https://coolcomponents.co.uk/products/fingerprint-scanner-5v-ttl I see a few requests for this in the forums but no actual component - and had started work on get...
by mnf
Mon Oct 09, 2017 3:08 pm
Jump to forum
Jump to topic

Re: Macro return visual glitch

Hi Ben, Closing and restarting Flowcode fixed the problem. I've not managed to replicate it either. Put it down to a cosmic ray and if I manage to duplicate it I'll post again. It occurred after I imported several macros from one sketch into another ( using export then import) which is probably the ...
by mnf
Sun Oct 15, 2017 8:42 pm
Jump to forum
Jump to topic

Re: Fingerprint scanner

Ok - so here is a first attempt as a component. There is still nothing for simulation users - get real people :D Ok - I'm still not really sure how to go about making it simulate correctly. Any pointers gratefully received. Some features of the GT5 fingerprint scanner aren't implemented (download/up...
by mnf
Sun Oct 15, 2017 6:37 pm
Jump to forum
Jump to topic

Calculation box glitch

Another minor cosmetic bug. Change a variable from within a calculation box (by clicking on edit variable) and the main flowchart displays the change instantly, but the calculation box contents do not reflect the change - and pressing OK gives 'missing variable' error. Pressing cancel and the re-ope...
by mnf
Thu Oct 26, 2017 8:05 pm
Jump to forum
Jump to topic

Re: SD Card component

Thanks Ben, Never did get the SD running in hardware mode - although I've managed before, perhaps didn't try the necessary speed combination for the rather slow SD card I was testing with (an old 20x Ultima which had a Rasbian image on and seems to have collapsed to 55MB - but still plenty for some ...
by mnf
Tue Oct 31, 2017 4:27 pm
Jump to forum
Jump to topic

Re: SD Card component

Thanks Ben, Looks very like the calculation I used to generate the time and date stamp fields. I'll check again this evening. It seems odd that the first file created has the correct date and time, and subsequent files have the date incorrectly as ../../97 I'm using RTC::GetYear which returns a byte...
by mnf
Tue Oct 31, 2017 10:48 pm
Jump to forum
Jump to topic

Re: SD Card component

Adding 20 to the year did the trick. Not sure why it worked correctly for the first file before. Ran camera as time lapse and it took ~990 photos of a rather wet and at times misty day. Even so the resultant video clip was pretty good - though the camera doesn't seem to capture green very well (look...
by mnf
Wed Nov 22, 2017 4:44 pm
Jump to forum
Jump to topic

Output to a pin

How do I go about writing to a user defined pin? Specifically - I want to write to the CE pin defined in a user component (but not from within the component) - for example NRF24L01... I'd like CE = HIGH (or 1), Delay(10us), CE = LOW Looking at the C generated we have FCP_SET(B, B, 2, 4, 0) (for exam...
by mnf
Sun Dec 17, 2017 12:05 pm
Jump to forum
Jump to topic

Re: Help me choose a display

It would be easy to plot digits as 8x8 blocks, my MAX7219 component (see http://www.matrixtsl.com/mmforums/viewtopic.php?f=66&t=19356) has a character set you could use? Alternatively you could use that component and some 8x8 led matrix components (I used https://www.amazon.co.uk/MagiDeal-MAX721...
by mnf
Sun Dec 17, 2017 6:28 pm
Jump to forum
Jump to topic

Re: Help me choose a display

As I had a little time to kill - I knocked up a big character demo for the SSD1306 based OLED display.. BigChar.fcfx Which sort of works - I've just put in some 'dummy' characters.. However it did open up a rather large can of worms..... The component seems to have been copied from a base component ...
by mnf
Wed Oct 04, 2017 3:39 pm
Jump to forum
Jump to topic

Re: MAX7219 component

Thanks Leigh, Changed to exporting the CAL_SPI properties. Still a couple more questions: 1) Cal_Spi still expects MISO to be connected (In the base component MISO is connected to Port D0 - will this cause problems for different targets?). Using Slave TX doesn't compile (and Master TX expects a repl...
by mnf
Sun Dec 31, 2017 9:36 pm
Jump to forum
Jump to topic

Re: MAX7219 component

Hi, Glad that you managed to get things to work. A few of the macros supported (at present) are: Shutdown - arg is powerOff. I think this badly named (was taken from the Arduino library - but no excuse) - I think Power(bool on) would be clearer. InitialiseLED call clears the display and sets the sca...
by mnf
Mon Jan 01, 2018 9:08 am
Jump to forum
Jump to topic

Re: I2C DISPLAY PROBS

Hi, It depends on what i2c port expander is used in the display. I have a 'cheap' Chinese display and it seems to use the PCF8574 port expander to connect i2c to the LCD display's inputs. I started thinking about creating a component to support this - but it lead me down some twisty passages on the ...
by mnf
Mon Jan 01, 2018 1:07 pm
Jump to forum
Jump to topic

Re: MAX7219 component

Hi Jorgen, Not sure I've quite got my head around the bit twiddling needed to do scrolls etc - but here is a simple character rotation to try. It adds a PenRot and PlotRotation - I've only tested with a single display (I'll wire some more up later!) - just to check that this is the sort of thing tha...
by mnf
Sun Dec 31, 2017 9:57 pm
Jump to forum
Jump to topic

Re: UDP string rx

Note that there is a mistake in the detail: '2' = 50 '3' = 51 \n = 0 The string variable contains a reference to the location of the first character 'H'. The \n character is a control code (NULL) with the numeric value 0. This is used as the terminating character of a string and its location is mana...