Sunday 29 November 2020

Kitronix line following buggy

Finally made som,e definitive code for the Kitronix line following buggy.

Things I learnt: 

1) Need 2A battery! A 1A 5V power pack can go into reset 

2) Sensor board not great

 

The .HEX files on Google Drive below need to be downloaded and then imported into the BBC Micro:bit web editor at: 

Micro:bit Editor

 

 HOW TO USE.txt

 Buggy Code (with local and remote test mode)

Transmitter Code


 


Programming the BBC Micro:bit in C

Finding the black line following buggy feedback loop being too slow (~ 0.5s) I decided to program it in C by following this article: https://www.i-programmer.info/programming/hardware/9651-getting-started-with-cc-on-the-microbit.html And going on to website: https://www.mbed.com/ In particular: https://os.mbed.com/platforms/Microbit/ and: https://os.mbed.com/platforms/Microbit/#getting-started-video Found I already had and account and had programmed Hello World before! Back in 14th April 2020 So looked for buggy example code: https://os.mbed.com/users/AdrianClarke/code/microbit_Buggy_Basics/docs/tip/