Hi,
I have seen this software and it looks pretty simple. I have the cahnce to get a used version of flowcode v4 AVR on ebay and I am thinking to buy it.
I would like to program a microcontroller and driving some ws2812 LEDs.
I havent found anything, if flowcode is able to work with WS2812 LEDs. I just found out that a nanosecond delay that is needed to drive these LEDs is not possible with flowcode.
Is there another way driving the WS2812 LEDs with flowcode?
I just want to make sure before I buy this version.
Thanks
Can you work with WS2812 LEDs in Flowcode v4 AVR
-
- Posts: 4
- Joined: Wed Feb 05, 2014 5:32 pm
- Contact:
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
Hi
I've moved your post to a more suitable section.
Tips and tricks section is for posting programming tips only, not for general questions.
If you are looking at buying a used copy, I suggest you make sure it is a genuine copy otherwise you may not be able to activate it. Matrix staff will advise on the legality of buying used software.
Im not familiar with the component you want to use, but have you tried downloading the free version of FC to get a feel for it and see if it will drive the LED.
I've moved your post to a more suitable section.
Tips and tricks section is for posting programming tips only, not for general questions.
If you are looking at buying a used copy, I suggest you make sure it is a genuine copy otherwise you may not be able to activate it. Matrix staff will advise on the legality of buying used software.
Im not familiar with the component you want to use, but have you tried downloading the free version of FC to get a feel for it and see if it will drive the LED.
1 in 10 people understand binary, the other one doesn't !
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
It all depends on what oscillator your AVR will run. You can always write your own delay functions.
I just made a flowcode program using ASM to drive a WS2812 LED from a PIC microcontroller (16F876) running at 5MIPS/20MHz.
I didn't need a nanosecond delay function because the PIC runs just fast enough that adding a NOP here and there while toggling the I/O makes the desired communication protocol.
(see french section of this forum)
- Nicolas
I just made a flowcode program using ASM to drive a WS2812 LED from a PIC microcontroller (16F876) running at 5MIPS/20MHz.
I didn't need a nanosecond delay function because the PIC runs just fast enough that adding a NOP here and there while toggling the I/O makes the desired communication protocol.
(see french section of this forum)
- Nicolas
-
- Posts: 4
- Joined: Wed Feb 05, 2014 5:32 pm
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
What exactly is a NOP???Spanish_dude wrote:It all depends on what oscillator your AVR will run. You can always write your own delay functions.
I just made a flowcode program using ASM to drive a WS2812 LED from a PIC microcontroller (16F876) running at 5MIPS/20MHz.
I didn't need a nanosecond delay function because the PIC runs just fast enough that adding a NOP here and there while toggling the I/O makes the desired communication protocol.
(see french section of this forum)
- Nicolas
Can you add a picture of the "flow chart" (print screen) of you programm?
Thanks
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
NOP is an instruction where the microcontroller does nothing for 1 clock cycle.
There's nothing to see in my flowchart but 3 functions written in inline assembly and a C box in my main loop, which contains inline assemble too.
You should check out AVR libraries for driving WS2812 LEDs. Get the C code out of it and try to implement it in flowcode.
My code won't work on an AVR because it's written in ASM for PICs, which is not compatible with AVR.
I've attached the flowcode file and C code.
- Nicolas
There's nothing to see in my flowchart but 3 functions written in inline assembly and a C box in my main loop, which contains inline assemble too.
You should check out AVR libraries for driving WS2812 LEDs. Get the C code out of it and try to implement it in flowcode.
My code won't work on an AVR because it's written in ASM for PICs, which is not compatible with AVR.
I've attached the flowcode file and C code.
- Nicolas
- Attachments
-
- Demo LED WS2812 FCV5.c
- (7.76 KiB) Downloaded 501 times
-
- Demo LED WS2812 FCV5.fcf
- (17.85 KiB) Downloaded 505 times
-
- Flowcode v5 User
- Posts: 63
- Joined: Fri Apr 19, 2013 2:18 am
- Has thanked: 10 times
- Been thanked: 14 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
I really wish someone would come up with a "core program" based on an AVR....
I've looked at the WS2812 and I have no clue how to get started. I'm not good in 'C' , so that does not help !
Would be nice if Matrix, instead of coming up with mecanical simulation for V6 (IMHO), would have created blocks that would have that code embedded for us !
they could have built blocks for other stuff like X-10, DMX-512, etc .... something that you simply drop and configure...
just a thought...
Jasmin
I've looked at the WS2812 and I have no clue how to get started. I'm not good in 'C' , so that does not help !
Would be nice if Matrix, instead of coming up with mecanical simulation for V6 (IMHO), would have created blocks that would have that code embedded for us !
they could have built blocks for other stuff like X-10, DMX-512, etc .... something that you simply drop and configure...
just a thought...
Jasmin
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
Not sure what you mean by core program, but don't expect people to just do everything for you, that's not how it works.
I'm sorry it didn't help, but maybe you're starting with something too difficult for you to do with the knowledge you have right now about programming AVRs.
Start with something easy then go bigger and bigger.
Matrix makes flowcode components for their e-blocks.
You can make your own components/functions with flowcode too.
I think the mechanical simulation in V6 is pretty amazing. I don't know what the capabilities of it are, but making a 3D printer or CNC or even a robot and then be able to simulate it is awesome.
I'm sorry it didn't help, but maybe you're starting with something too difficult for you to do with the knowledge you have right now about programming AVRs.
Start with something easy then go bigger and bigger.
Matrix makes flowcode components for their e-blocks.
You can make your own components/functions with flowcode too.
I think the mechanical simulation in V6 is pretty amazing. I don't know what the capabilities of it are, but making a 3D printer or CNC or even a robot and then be able to simulate it is awesome.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
Hello,
DMX can be controlled via MIDI.
v6 is not about mechanical simulation, it's about allowing you to create your own components. The fact we can now do mechanical simulation is a bonus.
Spanish dude's comments are good, maybe start with something simpler and work your way up.
We have done hardware and software for X10 before and it just didn't sell, especially in the UK so we dropped it.Would be nice if Matrix, instead of coming up with mecanical simulation for V6 (IMHO), would have created blocks that would have that code embedded for us !
they could have built blocks for other stuff like X-10, DMX-512, etc .... something that you simply drop and configure...
DMX can be controlled via MIDI.
v6 is not about mechanical simulation, it's about allowing you to create your own components. The fact we can now do mechanical simulation is a bonus.
Spanish dude's comments are good, maybe start with something simpler and work your way up.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Can you work with WS2812 LEDs in Flowcode v4 AVR
Can the flowcode work for this easy diy ws2812b matrix? they are designed in vertical circuit.