Skip to content

Instantly share code, notes, and snippets.

View idriszmy's full-sized avatar

Idris Zainal Abidin idriszmy

View GitHub Profile
/*******************************************************************************
* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTY AND SUPPORT
* IS APPLICABLE TO THIS SOFTWARE IN ANY FORM. CYTRON TECHNOLOGIES SHALL NOT,
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL
* DAMAGES, FOR ANY REASON WHATSOEVER.
********************************************************************************
* DESCRIPTION:
*
* This example is for controlling Ikedo Mini V2 using PS2 controller.
*
@idriszmy
idriszmy / IkedoMiniV2WithStrategies.ino
Last active June 30, 2024 05:36
Ikedo Mini V2 sumo robot with motor speed alignment, auto detection for edge and strategy (half moon) at DIP 1 and 4.
/*******************************************************************************
* THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTY AND SUPPORT
* IS APPLICABLE TO THIS SOFTWARE IN ANY FORM. CYTRON TECHNOLOGIES SHALL NOT,
* IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL
* DAMAGES, FOR ANY REASON WHATSOEVER.
********************************************************************************
* DESCRIPTION:
*
* This example is for the Autonomous Sumo Robot with:
* - motor speed alignment
@idriszmy
idriszmy / Barcodes.py
Last active April 23, 2024 19:36
Scan barcodes and QR codes using Raspberry Pi Zero W and Raspberry Pi Camera V3
#!/usr/bin/python3
'''
- Raspberry Pi Zero W
https://my.cytron.io/p-raspberry-pi-zero-w-and-bundles
- Raspberry Pi Camera Module 3 - 12MP with Auto Focus lens
https://my.cytron.io/p-raspberry-pi-camera-module-3-12mp-with-auto-focus-lens
- Raspberry Pi Zero/W/WH 15cm Camera Cable
https://my.cytron.io/p-raspberry-pi-zero-v1.3-camera-cable
@idriszmy
idriszmy / code.py
Last active April 20, 2024 10:41
Maker Pi RP2040 Mobile Robot: Part 2 - Line Following
#
# Maker Pi RP2040 Mobile Robot: Part 2 - Line Following
#
# Tutorial
# - https://tutorial.cytron.io/
#
# Raspberry Pi Pico
# - Maker Pi Pico https://my.cytron.io/p-maker-pi-pico?tracking=idris
# - LiPo 3.7V 1300mAH https://my.cytron.io/p-lipo-rechargeable-battery-3.7v-1300mah?tracking=idris
# - Maker Line https://my.cytron.io/p-maker-line-simplifying-line-sensor-for-beginner?tracking=idris
@idriszmy
idriszmy / code.py
Created February 12, 2021 10:00
Keyboard Emulator Using Raspberry Pi Pico (Maker Pi Pico) and CircuitPython
#
# Keyboard Emulator Using Maker Pi Pico and CircuitPython
#
# References and credit to
# - https://learn.adafruit.com/circuitpython-essentials/circuitpython-hid-keyboard-and-mouse
#
# Raspberry Pi Pico
# - [Maker Pi Pico] https://my.cytron.io/p-maker-pi-pico?tracking=idris
#
# Additional Libraries
@idriszmy
idriszmy / code.py
Created May 30, 2022 07:00
Bluetooth HC-05 master-slave configuration using CircuitPython.
"""
Bluetooth HC-05 master-slave configuration using CircuitPython
Items:
- Maker Pi Pico
https://my.cytron.io/p-maker-pi-pico
- Bluetooth Serial Transceiver HC-05
https://my.cytron.io/p-bluetooth-serial-transceiver-hc-05
- USB Micro B Cable
https://my.cytron.io/p-usb-micro-b-cable
@idriszmy
idriszmy / code.py
Last active February 27, 2024 13:24
Play MP3 files from SD card using Maker Pi Pico and CircuitPython
"""
Play MP3 files from SD card using Maker Pi Pico and CircuitPython
Maker Pi Pico
- https://my.cytron.io/p-maker-pi-pico
6W Stereo USB Powered 3.5mm Jack Speaker
- https://my.cytron.io/p-6w-stereo-usb-powered-3-5mm-jack-speaker-black
Dual 18650 Dual Output 3.3V and 5V USB Module (optional)
- https://my.cytron.io/c-lithium-ion-rechargeable-battery-and-charger
3.7V 2000mAh Li-Ion Battery
@idriszmy
idriszmy / pizerow_telegram_photo.py
Created June 15, 2023 14:20
Send photo through Telegram using Raspberry Pi Zero W and Pi Camera Module 3
'''
Send '/picam3' to your Telegram bot to request photo
Devices:
- Raspberry Pi Zero W
https://my.cytron.io/p-raspberry-pi-zero-w-and-bundles
- Raspberry Pi Camera Module 3
https://my.cytron.io/p-raspberry-pi-camera-module-3-12mp-with-auto-focus-lens
Install Telepot
@idriszmy
idriszmy / code.py
Last active January 16, 2024 08:07
Telegram Bot using CircuitPython on Raspberry Pi Pico W
"""
Telegram Bot using CircuitPython on Raspberry Pi Pico W
Items:
- Maker Pi Pico Mini
https://my.cytron.io/p-maker-pi-pico-mini-simplifying-projects-with-raspberry-pi-pico
- USB Micro B Cable
https://my.cytron.io/p-usb-micro-b-cable
CircuitPython Raspberry Pi Pico W
@idriszmy
idriszmy / code.py
Created June 25, 2023 03:16
Raspberry Pi Pico - Fast line following robot
'''
How it works:
- https://vt.tiktok.com/ZSLkkvWB7/
'''
import time
import board
import digitalio
import pwmio
import analogio