Тёмный

XMOS StartKit part 2: Hands On 

MrCircuitMatt
Подписаться 2,6 тыс.
Просмотров 2,3 тыс.
50% 1

This video shows how to use the XMOS StartKit to implement a Knight Rider effect / larsson scanner on an RGB LED strip. This is not a tutorial on how to use the StartKit. But it is about LEDs, so it's worth watching nonetheless. Also, the communication protocol for WS2811 LED drivers is covered.
Links:
Part 1: • XMOS StartKit part 1: ...
WS2811 datasheet: www.adafruit.co...
My LED strip: www.aliexpress....
Code: gist.github.co...
Note that this is not production code!

Опубликовано:

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@BenBilesBB-box
@BenBilesBB-box 4 года назад
great, thank you.
@00225username5
@00225username5 8 лет назад
Thank you for you advice
@00225username5
@00225username5 8 лет назад
Thanks for sharing what you have been done. What I understand it, we can use XMOS for multi tasking in parallel, am I right? If yes, How I start programming my project with XMOS? I have to use it for two tasks: 1. Reading data (receiving) from UART via BLE, saving this data in to the Buffer 1 and Buffer 2. 2. Reading data from one buffer, let is say Buffer 1 while task 1 is writing data in to the Buffer 2 and so on. Then sending this data to GPIO for running 2D LED matrix. Could you please give me some hints. Thank you Regards Sam
@MrCircuitMatt
@MrCircuitMatt 8 лет назад
+Nabeel Fattah Hello there! I'm not sure I can give you good hints because I'm far from being an expert. I suggest to use the XMOS forums, when I had questions the folks there were very nice and gave good support. I am of course happy to give you the pointers I can: First, for UART you should check applications notes AN00158 and XM006381. Those should have example codes to fulfil task 1. For the GPIO part, you can check XM006034 and AN00166 but probably my videos suffice to fulfil this part. I would try to get those two running individually first. The tricky part is probably doing the double-buffer read/write access thing. I once considered doing part 3 of this series with exactly that, but it never happened. So I don't have first-hands experience in doing that, and since I'm not developing for XMOS right now I would probably give you bad advice. There is, however, good news: They have an application note that describes exactly the double buffer scenario that you need. It is described in note AN10011 with example code. I hope this gets you started! Best regards -- Matt
@pt2091
@pt2091 7 лет назад
why are we dividing by 32
@MrCircuitMatt
@MrCircuitMatt 7 лет назад
Hello pt2091. Sorry it's been a while since I did this, I don't remember dividing by 32. But I'm probably doing it somewhere... can you show me where in the code or in the video that is?
@pt2091
@pt2091 7 лет назад
MrCircuitMatt 8:57 I just realized why now though haha
@MrCircuitMatt
@MrCircuitMatt 7 лет назад
Ah! Thanks. To transmit a HIGH or LOW bit, we have to generate a waveform that has a duration of 1.25 microseconds according to the specification. Depending on whether it's HIGH or LOW, it's 600 ns of high voltage followed by 650 ns of low voltage (HIGH), or 250 ns of high voltage followed by 1000 ns of low voltage. This is somewhat confusing because the HIGH/LOW bits to be transferred are encoded with waveforms that toggle between high and low voltages themselves. Based on this, the smallest "pulse" we have to produce has a duration of 250 ns; it's the high pulse at the beginning of the waveform for LOW. By dividing the 100 MHz reference clock by 32, I end up with a resolution of 320 ns. This is not the 250 ns resolution that I need to generate that 250 ns pulse, but it's close enough. So I can approximate the waveforms with segments of 320 ns each. Does that make sense?
Далее
How 3 Phase Power works: why 3 phases?
14:41
Просмотров 921 тыс.
TenTec Argonaut V Repair Part 1
26:23
Просмотров 2,6 тыс.
HB9UF: Desense Testing
23:01
Просмотров 6 тыс.
The Truth About SIM Card Cloning
13:04
Просмотров 1,1 млн
Op-Amps  - Using Operational Amplifiers
44:21
Просмотров 283 тыс.
Getting Started with PlatformIO
51:54
Просмотров 621 тыс.
Electromagnetic Aircraft Launcher
15:09
Просмотров 1,4 млн
Homebrew Spectrum Analyzer 9: The internals of a DDS
32:38