Page 1 of 2

Received my Arduino Uno, micro:bit and Raspberry Pi Pico kit

PostPosted: Thu Sep 01, 2022 2:32 pm
by FlierMate
So fast! It took only 2 days (and yesterday was public holiday) to receive my first order from Cytron, the Arduino Uno starter kit and 2x LED strips.

da4f2b.jpg


This is my second time playing with Arduino programming. My first encounter with Arduino is 2 years ago, building a simple audio visualizer from Windows sound.

Image

ADDED: Animated GIF showing 1.6 seconds of the audio visualizer project two years ago. Can see the Uno board is not original Arduino Uno (it was bought by my former employer):
Image

I think I have forgotten most part of Arduino programming, barely remember Arduino IDE and avrdude.

Thank you, Cytron!

Re: Received my Arduino Uno starter kit

PostPosted: Fri Sep 02, 2022 4:55 pm
by FlierMate

Re: Received my Arduino Uno starter kit

PostPosted: Sat Sep 03, 2022 3:54 am
by FlierMate

Re: Received my Arduino Uno starter kit

PostPosted: Tue Sep 27, 2022 5:11 pm
by FlierMate
After playing with Arduino Uno starter kit, this time I have ordered BBC micro:bit V2 quick start kit from Cytron, I am a happy customer, hope can receive within these few days.



From makecode website, micro:bit can be programmed with Blocks (low-code), Python or JavaScript. The board has in-built temperature sensor, unlike Arduino Uno R3, have to connect temperature sensor (and resistor) separately to breadboard.

Re: Received my Arduino Uno starter kit

PostPosted: Thu Sep 29, 2022 3:41 pm
by FlierMate
Received my BBC micro:bit V2 quick start kit today!

I then program with Blocks, a simple one to show image pattern in LED:


The micro:bit V2 board is very small, smaller than PC mouse. And it has compass, microphone, antenna... and according to data sheet, also comes with temperature sensor. Wow!
c9c8d5.jpg


Click download on MakeCode website, and instantly get the LED image pattern on micro:bit V2 board!
9f2635.jpg

Re: Received my Arduino Uno starter kit

PostPosted: Thu Sep 29, 2022 7:16 pm
by FlierMate
One more to showcase, just choose Basic from the toolbox.

Screenshot 2022-09-29 170314.png
Screenshot 2022-09-29 170314.png (10.9 KiB) Viewed 15872 times


Example text string "mlxl" is displayed on the 5x5 LED matrix:

Image

Re: Received my Arduino Uno starter kit

PostPosted: Sat Oct 01, 2022 9:17 pm
by FlierMate

Re: Received my Arduino Uno and micro:bit starter kit

PostPosted: Sat Oct 08, 2022 5:33 pm
by FlierMate
With reference to this nice tutorial at Cytron:
https://tutorial.cytron.io/2022/09/20/i ... d-arduino/

I connect my two boards together with I2C protocol, but without the expansion board.

boards.jpg


I refer to Edge connector diagram to find out where is pin 19 (SCL) and pin 20 (SDA):
https://tech.microbit.org/hardware/edgeconnector/

pinout.png


Thanks to Abdul Qayyum from Cytron, this is working!

My micro:bit program:
i2c.png


Arduino program is the same as what has been told in Cytron tutorial, using Examples >> Wire >> slave_receiver.
Just change the address to #99.

And this is the output in Serial Monitor:
com.png
com.png (10.69 KiB) Viewed 15754 times

Re: Received my Arduino Uno, micro:bit and Raspberry Pi Pico

PostPosted: Thu Oct 20, 2022 5:36 am
by FlierMate
Finally figured out how to make Raspberry Pi Pico board works, by first make its internal LED blinks!

Image

First, I use Thonny Python IDE, have to install MicroPython first:



It says "MicroPython v1.19.1 on 2022-06-18; Raspberry Pi Pico with RP2040"

Then start writing code (the code was referred to other tutorial website except the loop and delay):
CODE: SELECT_ALL_CODE
from machine import Pin
import time

while (1):
    Pin(25, Pin.OUT).value(1)
    time.sleep(1)
    Pin(25, Pin.OUT).value(0)
    time.sleep(1)


Screenshot 2022-10-20 052936.png


I have had fun with it. Maybe next will connect to external LED on breadboard!

Re: Received my Arduino Uno, micro:bit and Raspberry Pi Pico

PostPosted: Thu Oct 20, 2022 8:59 pm
by FlierMate
Done connecting to external LED for blinking!

ca2d9f.jpg


Image

Just change from pin 25 to pin 8.

CODE: SELECT_ALL_CODE
while (1):
    Pin(8, Pin.OUT).value(1)
    time.sleep(1)
    Pin(8, Pin.OUT).value(0)
    time.sleep(1)