To ensure you don’t miss my updates, remember to check the top right corner – view the official account – set it as a star, and give me a star!


The Raspberry Pi and the 51 microcontroller seem like unrelated platforms, but after some effort, it turns out that we can use the Raspberry Pi for remote development of the microcontroller. Where there’s a will, there’s a way. Thanks to Da Fan Jin Han for the submission. The detailed implementation process can be found below the video, or you can get the corresponding code by replying: Raspberry Pi Development Microcontroller in the “Darwin says” WeChat.
Project Demonstration↓↓↓
Project Background
Alright, the serious nonsense ends here, mainly because my poor writing skills just can’t go on! Spare me!!! The real reason is that I, being poor, really can’t afford to buy a development board to learn.
Project Components List
Intranet penetration tool
This is certainly recommended to use Peanut Shell.
We need a device for remote connection
I had a Raspberry Pi 3B that had been collecting dust for a long time, so I took that out to use.
A development board to execute programs
This is a 51 development board I used before.
A camera for displaying images
In the spirit of frugality, I dug out an old USB camera from 10 years ago.
Some relays
Can’t guess what this is for? I’ll keep it a secret for now.
Project Implementation Process
Step 1: The Raspberry Pi can use VNC for remote desktop, but as someone who loves tinkering, I can’t just settle for having to install a client! Absolutely not!!! So I chose noVNC, which has HTML5 parsing for the VNC protocol. That way, the remote part is okay.
Detailed Project Implementation Process
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo cp /etc/apt/sources.list.d/raspi.list/etc/apt/sources.list.d/raspi.list.bak
sudo vi /etc/apt/sources.list
deb http://mirror.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpideb-src http://mirror.tuna.tsinghua.edu.cn/raspbian/raspbian/ bustermain contrib non-free rp
sudo vi /etc/apt/sources.list.d/raspi.list
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
sudo apt-get updatesudo apt-get upgrade
sudo raspi-config
whereis vncserver
yum install -y tigervnc-server
vncserver
# Install gitsudo apt-get install git# Get the source code for noVNCgit clone https://github.com/kanaka/noVNCEnter the noVNC directorycd noVNCRun noVNC (the first run may take some time to download a port forwarding program) ./utils/launch.sh --vnc localhost:5901
# -*- coding: utf-8 -*-import RPi.GPIO as GPIOimport time# BOARD numbering method, based on socket pin numberingGPIO.setmode(GPIO.BOARD)# Output modeGPIO.setup(0, GPIO.OUT)GPIO.output(0, GPIO.HIGH)time.sleep(1)GPIO.output(0, GPIO.LOW)time.sleep(1)
RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.

More practical project recommendations:
STM32 IoT Smart Home Project
Project Sharing | Step-by-Step Face Recognition with MATLAB + Raspberry Pi
Raspberry Pi + Compute Stick 2 for Real-Time Face Recognition Project
Building a Cloud Computing Platform for Embedded Development Boards
STM32 Achieving the Simplest Air Mouse
Arduino Rubik’s Cube Robot
STM32 Version “AI Soul Painter”
STM32 Electronic Photo Album Production
STM32 + DDS Homemade Signal Generator
Using Raspberry Pi and Web Interface for Remote Control of Home Appliances
STM32 “Cloud” Music Player
Raspberry Pi Remote Monitoring
Design of a Neon Tube Clock Based on STM32
Homemade FPGA Minimum System Board (PCB can be directly made)
Building NAS with Raspberry Pi 4 to Easily Connect Hard Drives
ESP32 Car Soft and Hard Practical Sharing
Complete Creative Gesture Recognition with Only 79 Lines of Code
IoT + Electronic Ink Screen to Create Customized Display
Build a Pathfinding Robot Worth Over a Thousand Yuan for Dozens of Yuan
Glasses that Can Show 3D Holograms, Visual Persistence POV Project
DIY Gesture Recognition Module
Practical small designs that can be DIYed with 0 foundation
Raspberry Pi to Create a Smart Doorbell + Smart Lock with Video
Strange! My development board can play games automatically
Homemade Breathing Machine
ESP8266 + Zigbee Networking to Transform Wall Switches
Wireless Home Monitoring System
DIY Bionic Arm, a Tool to Free Hands
Handmade Air Purifier, All Design Materials Open Source
Tech Toy: Bluetooth Artillery That Can Be Remotely Controlled
Using ST Sensors to Create a Little Bee Monitoring System That Lets Bees “Talk”
Homemade Cat Playing Device
STM32 + Raspberry Pi Achieves 6s Rubik’s Cube Robot
Blindly Modified Drone Controller, DIY “Foam” Drone
Making a Smart Relay Without Arc Using STM32
Making a Practical New Type Necklace with Just 5 Components
The Simplest Method for Heart Rate Measurement (suitable for secondary development)
Cracking the Magnetic Levitation Globe
Magical Light Can Transmit Video? Revealing the Production Process
Homemade Smart Watch with STM32 60FPS Animation
Paying Tribute to Classic Radios, Observing the Production Process
DIY Third Eye: “Special” Glasses with Bluetooth/OLED/Lens Function
Homemade Solar Charger That Tracks Maximum Power Point
No MCU Version Night Vision Goggles, Just Wire Connections Needed
The Right Way to DIY Flow Meters, Interest Modifiers
Homemade High-Difficulty Racing Timer (Lap/Heat Sensitive Printing)
DIY Mobile WiFi Controlled LED Dice
Gas-Powered Power Bank
Homemade Simple Raspberry Pi Security System
Using Microcontrollers + ESP8266 to Build a Small Weather Station
Super Mini & Highly Expandable Palm Machine Car
Recommended Reading:
