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

Discussion about online shopping at Cytron website

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

Postby FlierMate » Thu Sep 01, 2022 2:32 pm

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!
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Fri Sep 02, 2022 4:55 pm

Tested OK with a blinking LED!

Image

Image
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Sat Sep 03, 2022 3:54 am

And now a button switch with serial port interfacing.

The PC end is C# .NET, showing "Button Pressed" if switch pressed.

Image
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Tue Sep 27, 2022 5:11 pm

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.
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Thu Sep 29, 2022 3:41 pm

Received my BBC micro:bit V2 quick start kit today!

I then program with Blocks, a simple one to show image pattern in LED:
Screenshot 2022-09-29 152718.png


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
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Thu Sep 29, 2022 7:16 pm

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 861 times


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

Image
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Re: Received my Arduino Uno starter kit

Postby FlierMate » Sat Oct 01, 2022 9:17 pm

Done a more complicated MakeCode program for micro:bit.

Below is a new Blocks program I created for counter. Since micro:bit has two buttons (A and B), pressing A will increment the counter, while pressing B will decrement the counter, minimum 0.
Screenshot 2022-10-01 210425.png


Image
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

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

Postby FlierMate » Sat Oct 08, 2022 5:33 pm

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 738 times
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

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

Postby FlierMate » Thu Oct 20, 2022 5:36 am

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!
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

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

Postby FlierMate » Thu Oct 20, 2022 8:59 pm

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)
User avatar
FlierMate
Newbie
 
Posts: 13
Joined: Wed Aug 31, 2022 10:40 pm

Next

Return to Online Shopping

Who is online

Users browsing this forum: No registered users and 2 guests

cron