Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Advanced users • Re: Is there any way to use the Raspberry Pi like an Arduino?

$
0
0
I know that Raspberry Pi and Arduino are not same. But is there any way to use the Raspberry pi like an Arduino? I mean, no mouse, no display, no keyboard. Just connect the Raspberry pi to the computer's USB port and upload the code.

I know for this type of applications, we got Raspberry Pi Pico. But I am not talking about Pico. I want to know if I can do the same with a full-fledged Raspberry Pi.
A Pi0 or Pi1 is low power enough to be powered by a typical USB serial console cable. Normally you only connect the GND, RX, TX to the GPIO pins and use a separate PSU on GPIO 4 (5V). But if you remove the PSU and connect the red wire to GPIO 4, you can get a Linux console if you plug in the USB end of the cable in another computer USB port, assuming you run a terminal program there like Windows putty or Linux screen.
If you want to up load code, you need to prepare/change the SD card in such a way that it does not start getty at bootup, but some dedicated code downloaded and boot-loader to get you uploaded binary started. Traditional embedded computer boards tend to support that out-of-the-box, so mimic that. All those method should be open source, might be very proprietary depending on sort of CPU used, but principle is the same. So it is a matter of hard work. There are other ways, but this cabling is like what is like an Arduino.

Statistics: Posted by redvli — Fri Jul 11, 2025 6:43 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles