Giter Club home page Giter Club logo

maker-pi-pico's Introduction

Cytron Maker Pi Pico - Simplifying Raspberry Pi Pico for Beginners

If you are new to Cytron Maker Pi Pico and want to get started quickly, you are in the right place! Here you will find all the information you need to set up your hardware and software and start coding with the Cytron Maker Pi Pico.

Resources/Example code for Maker Pi Pico and Maker Pi Pico Base by Cytron Technologies.

Image of Maker Pi Pico

Pinout Diagram

Image of Maker Pi Pico Pinout Diagram

What's Raspberry Pi Pico?

Raspberry Pi Pico is the first microcontroller board from Raspberry Pi Foundation, especially designed for physical computing. It can be programmed with MicroPython and C/C++ to control things in our real world.

Requirements

To get started, you will need the following hardware and software:
Hardware:

Software:
To upload the code to the Raspberry Pi Pico you need an IDE such as Micropython. These codes were written in python, if your operating system don't have it you can download it from here.

Tutorials

If you want a guidance on how to use the code for Maker Pi Pico, here some tutorials you can follow:

Documentation

For more information on the Maker Pi Pico, check out the datasheet here:

Support

If you need further assistance, we welcome you to our technical forum where our team will be happy to assist you.

Let's start building with Maker Pi Pico!

maker-pi-pico's People

Contributors

bhavi-thiran avatar idriscytron avatar kiate avatar mlhakimz avatar salamcytron avatar waiweng83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maker-pi-pico's Issues

ESP8266 Grove example

Hi,

I'm trying to use the new Cytron Grove ESP8266 module with the Maker Pi Pico with CircuitPython 6.3.0

I connected it to "Grove 5" port and modified the code to use GP9 and GP8
(The same occurs when I connect to "Grove 1" port and use GP1 and GP0.)

# Initialize UART connection to the ESP8266 WiFi Module.
RX = board.GP9
TX = board.GP8
uart = busio.UART(TX, RX, receiver_buffer_size=2048)  # Use large buffer as we're not using hardware flow control.

esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, debug=False)

wifi = adafruit_espatcontrol_wifimanager.ESPAT_WiFiManager(esp, secrets)

However, the program, while it can connect to WiFI and ping google.com, is unable to retrieve text from a webpage.


code.py output:
Resetting ESP module
Connecting to WiFi...
Connected!
My Grove ESP8266 IP address: 192.168.1.187
ESP Firmware Version: AT version:2.2.0.0(b097cdf - ESP8266 - Jun 17 2021 12:57:45)
Ping google.com: 10 ms
----------------------------------------
Ping wifitest.adafruit.com: 10 ms
----------------------------------------
----------------------------------------
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
---> AT+CIPDOMAIN="wifitest.adafruit.com"
<--- b'+CIPDOMAIN:"104.236.193.178"\r\n\r\nOK\r\n'
---> AT+CIPSTATUS
<--- b'STATUS:2\r\n\r\nOK\r\n'
---> AT+CIPSTART="TCP","104.236.193.178",80,10
<--- b'CONNECT\r\n\r\nOK\r\n'
---> AT+CIPSTATUS
<--- b'STATUS:3\r\n+CIPSTATUS:0,"TCP","104.236.193.178",80,49836,0\r\n\r\nOK\r\n'
---> AT+CIPSEND=3
<--- b'\r\nOK\r\n\r\n>'
Failed, retrying
 No OK response to AT+CIPSEND=3
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
---> AT+CIPDOMAIN="wifitest.adafruit.com"
<--- b'\r\nbusy p...\r\n\r\nRecv 3 bytes\r\n\r\nSEND OK\r\n'
Traceback (most recent call last):
  File "code.py", line 124, in <module>
  File "adafruit_requests.py", line 698, in get
  File "adafruit_requests.py", line 556, in request
  File "adafruit_requests.py", line 414, in _get_socket
  File "adafruit_espatcontrol/adafruit_espatcontrol_socket.py", line 26, in getaddrinfo
  File "adafruit_espatcontrol/adafruit_espatcontrol.py", line 413, in nslookup
RuntimeError: Couldn't find IP address

Code done running.

Any thoughts or suggestions?

Thanks,
Jeff

Need MicroPython Example Code for Reading and Writing to the SD Card

Thank you for this excellent board and the great example code. I am developing materials for CoderDojo classes.

Do you have any sample MicroPython code for reading or writing to the SD Card?

Hi have tried various examples but I can't see to find an example that works.

Here is the sdcard.py driver:

https://github.com/micropython/micropython/blob/master/drivers/sdcard/sdcard.py

Here is my example:

import machine, sdcard, os

SDCARD_SCK = 10
SDCARD_SDI = 11
SDCARD_SD0 = 12
SDCARD_X1 = 13
SDCARD_X2 = 14
SDCARD_CSn = 15

# SPI setup
spi_sck=machine.Pin(SDCARD_SCK)
spi_tx=machine.Pin(SDCARD_SDI)
spi=machine.SPI(1,baudrate=100000,sck=spi_sck, mosi=spi_tx)
sd = sdcard.SDCard(spi=spi, cs=machine.Pin(SDCARD_CSn))
os.mount(sd, '/sd')
os.listdir('/')

Which returns:

Traceback (most recent call last):
File "", line 14, in
File "/lib/sdcard.py", line 54, in init
File "/lib/sdcard.py", line 82, in init_card
OSError: no SD card

Error in example code for I2C LCD

Traceback (most recent call last):
File "", line 9, in
File "LCD_I2C.py", line 57, in init
File "LCD_I2C.py", line 107, in _command
OSError: [Errno 5] EIO

Connected to None

After following the simpletest.py file, I get stuck at this error
image

GP18and 19 resistors too low

This is a comment rather than a fault. I want to use GP18 and 19 as inputs in a logic analyser application. I love the Maker Pi Pico with its LEDs driven by FETS so they do not create a siginificant load on the inputs. However, the audio output socket is fed by a low resistance attenuator from GP18 and 19 with series resistors of 220 ohm and 100 ohm to ground. These are permanently wired in so they short out my high impedance inputs on these pins. I will have to remove the resistors R1 and R2 for my application. It would have been nice if they went through u-links to disconnect the load.

MicroPython SD Card Examole

I NEED a MICROPYTHON SD Card example for the Maker-Pi-Pico.
I have tried all the "current" examples on the internet I can find and NONE of them Work.
All of the Die on the "VfsFat" command

My SDCard and the Reader Work perfectly using CircuitPython, just NOT with MicroPython. I've tried formatting block size 512 & 1024 FS Fat32, Win 10 Formatter; Same error both times.

Code

import machine
import sdcard
import uos


cs = machine.Pin(15, machine.Pin.OUT)


spi = machine.SPI(1,
                  baudrate=1000000,
                  polarity=0,
                  phase=0,
                  bits=8,
                  firstbit=machine.SPI.MSB,
                  sck=machine.Pin(10),
                  mosi=machine.Pin(11),
                  miso=machine.Pin(12))

# Initialize SD card
sd = sdcard.SDCard(spi, cs)


vfs = vos.VfsFat(sd)                                          #<====   DIES HERE
uos.mount(vfs, "/sd")

with open("/sd/test01.txt", "w") as file:
    file.write("Hello, SD World!\r\n")
    file.write("This is a test\r\n")

# Open the file we just created and read from it
with open("/sd/test01.txt", "r") as file:
    data = file.read()
    print(data)

with following error

Traceback (most recent call last):
File "", line 23, in
File "sdcard.py", line 238, in readblocks
OSError: [Errno 5] EIO

Thx
Pete

ESP01 socket example

It would be really nice if you've had even the most rudimentary example on how to use pico with ESP01 through the socket on maker board.

Out of Box demo hangs in check_SDCARD for CircuitPython

With the latest release of CircuitPython, the demo hangs if button 2 is pressed to test the SDCard

It works fine if the order if the "deinit" of the spi bus and the sdcard are swapped here:
https://github.com/CytronTechnologies/MAKER-PI-PICO/blob/main/Out-of-the-box%20Demo%20Code/CircuitPython/code.py#L438

doing sd.deinit() before spi.deinit() works

I ran into this on CircuitPython 7.2.0-alpha1 but I don't know when it first became a problem.
I opened an issue in CircuitPython regarding the hang but it may make more sense to d the spi.deinit() after the sd.deinit() an general. Here is a link to the issue in CircuitPython for your reference.
adafruit/circuitpython#5869

Suggestions for controlling LED and reading Grove sensor data via RPC?

MrYsLab/telemetrix-rpi-pico-w#2

I redesigned the hardware setup for my autonomous research lab demo to use the RPi Pico W; however, I'm still working out some of the details on the software side.

I have two primary objectives: controlling the brightness and RGB values of the onboard NeoPixel LED and reading the sensor data from an AS7341.

Previously, I was using Blinkt! Any suggestings for controlling the LED with the same four inputs (brightness, R, G, B)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.