Questions tagged [raspberry-pi]

The Raspberry Pi is a small, inexpensive ARM-based PC device. PROGRAMMING QUESTIONS ONLY. Questions about using it should be asked on https://raspberrypi.stackexchange.com/

Raspberry Pi.SE

There is a Stack Exchange site dedicated to the Raspberry Pi. If your question is about using the Raspberry Pi, it should be asked there. However, general programming questions, which you happen to encounter on the Raspberry Pi are appropriate on Stack Overflow.


The Raspberry Pi is a low cost, credit card sized, ARMv6 instruction set based PC device developed by the Raspberry Pi foundation.

The Raspberry Pi currently has twelve models, Model A , Model B , Model A+, Model B+, Model 2 B, Zero, Zero W, Model 3 A+, Model 3 B, Model 3B+ and Model 4B with 1, 2, 4 or 8 GB RAM. Model A was the first model of the Pi to be released (in February 2012), at an average price of $25. Model B was a higher spec variant (first released in June 2012) at an average price of $35. Currently, among the twelve models, Model 4B 8GB has the highest spec (released in June 2019) at an average price of $75.

Only most notable specs listed

Model A consists of:

  • ARM11 CPU
  • OpenGL ES 2.0 capable GPU
  • 256 MB RAM (shared with GPU)
  • HDMI and RCA video
  • 1x USB 2.0 port
  • 3.5 mm audio jack
  • SD card slot

Model B consists of:

  • ARM11 CPU
  • OpenGL ES 2.0 capable GPU
  • 512 MB RAM (shared with GPU)
  • HDMI and RCA video
  • 2x USB 2.0 port
  • 3.5 mm audio jack
  • Ethernet port
  • SD card slot

Model A+ consists of:

  • ARM11 CPU
  • OpenGL ES 2.0 capable GPU
  • 256 MB RAM (shared with GPU)
  • HDMI and composite video via 3.5mm TRRS jack (shared with audio)
  • 1x USB 2.0 port
  • 3.5 mm audio jack
  • MicroSD card slot

Model B+ consists of:

  • ARM11 CPU
  • OpenGL ES 2.0 capable GPU
  • 512 MB RAM (shared with GPU)
  • HDMI and composite video via 3.5mm TRRS jack (shared with audio)
  • 4x USB 2.0 port
  • 3.5 mm audio jack
  • Ethernet port
  • MicroSD card slot

Model 2 B consists of:

  • 4 USB ports
  • 40 GPIO pins
  • Full HDMI port
  • Ethernet port
  • Combined 3.5mm audio jack and composite video
  • Camera interface (CSI)
  • Display interface (DSI)
  • Micro SD card slot
  • VideoCore IV 3D graphics core
  • A 900MHz quad-core ARM Cortex-A7 CPU
  • 1GB RAM

Model Zero consists of:

  • 1GHz single-core CPU
  • 512MB RAM
  • Mini HDMI and USB

Model Zero W additionally consists of:

  • 802.11b/g/n wireless LAN
  • Bluetooth 4.1 (BLE)

Model 3 A+ consists of:

  • 1.4GHz 64-bit Cortex-A53 (ARMv8) CPU
  • 512MB LPDDR2 SDRAM
  • 2.4GHz / 5GHz 802.11.b/g/n/ac wireless LAN
  • Bluetooth 4.2 (BLE)
  • 1x USB 2.0

Model 3 B consists of:

  • 1.2GHz 64-bit quad-core (ARMv8) CPU
  • 1GB RAM
  • 802.11n Wireless LAN
  • Bluetooth 4.1 (BLE)
  • 4x USB 2.0

Model 3 B+ consists of:

  • 1.4GHz 64-bit Cortex-A53 (ARMv8) CPU
  • 1GB LPDDR2 SDRAM
  • Gigabit Ethernet over USB 2.0 (maximum throughput 300 Mbps)
  • 2.4GHz / 5GHz 802.11.b/g/n/ac Wireless LAN
  • Bluetooth 4.2 (BLE)
  • 4x USB 2.0

Model 4 B consists of:

  • 1.5GHz 64-bit quad-core Cortex-A72 ARM v8 CPU
  • 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)
  • Gigabit Ethernet
  • 2.4 / 5GHz 802.11ac Wireless LAN
  • Bluetooth 5.0 BLE
  • 2x USB 2.0, 2x USB 3.0
  • 2x micro HDMI ports (both support up to 4kp60)

The most recently released and presently leading the features and power columns is the Model 400. This model varies a bit from previous ones in that it comes packed within a keyboard containing the ports, etc. You may check out the official page and find more information.

Model 400

  • Broadcom BCM2711 quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.8GHz
  • 4GB LPDDR4-3200
  • Dual-band (2.4GHz and 5.0GHz) IEEE 802.11b/g/n/ac wireless LAN
  • Bluetooth 5.0, BLE
  • Gigabit Ethernet
  • 2 × USB 3.0 and 1 × USB 2.0 ports
  • Horizontal 40-pin GPIO header
  • 2 × micro HDMI ports (supports up to 4Kp60)
  • H.265 (4Kp60 decode); H.264 (1080p60 decode, 1080p30 encode); OpenGL ES 3.0 graphics
  • MicroSD card slot for operating system and data storage
  • 78- or 79-key compact keyboard (depending on regional variant)
  • 5V DC via USB connector
  • Operating temperature: 0°C to +50°C ambient
  • Maximum dimensions 286 mm × 122 mm × 23 mm

The Raspberry Pi has no on-board operating system and requires an OS to be loaded onto an SD card, which it then boots from.

Common OS images (Official download page)

  • NOOBS (New Out Of Box Software - ideal for first time users)
  • Raspberry Pi OS, previously called Raspbian (Buster - suitable for beginners)
  • Ubuntu (Core or classic)
  • Soft-Float Debian
  • Pidora
  • Kali Linux - IT security and penetration testing

Related tags:

  • The tag with tag wiki, especially for assembly programming on the Raspberry Pi
  • Especially with tag wiki for programming on 64-bit systems

Further links:

Further information on the processors and their instruction set can be found in the arm and arm64 tag wikis.

17501 questions
3
votes
1 answer

Playing a local file on RPi with Node.js

I have a Raspberry Pi set up with a Node.js app that responds when it sees button push from an Amazon Dash Button. It was originally supposed to be a silent doorbell from https://github.com/initialstate/silent-doorbell, but I would like to just have…
Erik
  • 31
  • 3
3
votes
1 answer

Put a Windows 10 pc remotely to hibernate from a raspberrypi

I'm running homeassistant on a RaspberryPi3 in my local network and what I want to achieve is a switch inside homeassistant to switch on and off my computer (Win10) Apparently my Desktop PC does not support Wake on LAN from a real "shutdown" to S5,…
3
votes
3 answers

WebRTC with raspberry pi zero?

I want low-latency streaming from my Raspberry Pi Zero to mobile phone. To my understanding, RTMP streaming is not supported on mobile browsers, HLS streaming is high latency, and webRTC is my best bet. Does anyone know of a way to do webRTC…
user2989813
  • 283
  • 1
  • 5
  • 16
3
votes
1 answer

Issue with Bluetooth connection. Raspberry pi3 and nodejs 7.4.0

Ass everyone saying in their first posts "I'm new one" and trying to figure out one complexity. I want to scan and create list of available wifi networks in Raspberry area and send the list to the phone via bluetooth. Next - select one of the…
Alex Shtromberg
  • 740
  • 8
  • 21
3
votes
1 answer

Touchscreen calibration for Raspberry Pi in JavaFX is not working

I am using: Raspberry Pi Model B (Rev 1.0, 256Mb); cat /proc/cpuinfo returns for Revision 0002, Raspbian Jessie with PIXEL (Version: November 2016, Release date: 2016-11-25, Kernel version: 4.4), Java is preinstalled with Raspbian Jessie (java…
3
votes
2 answers

Which should I use thread or process?

I am writing a code in python on a raspberry pi while(true): functionA functionB Function A is basically a command that captures images in png format. I do not want it be a blocking function. I want my code to proceed to function B, while in…
3
votes
2 answers

How to change the date on Android Things device?

I'm using Android Things Developer Preview on Raspberry Pi 3 Model B. Is there any way to set the correct date/time/timezone?
Jan Slominski
  • 2,968
  • 4
  • 35
  • 61
3
votes
1 answer

Plex Media Server in Raspberry Pi

I'm using this guide at PiMyLifeUp to set up a Plex Media Server on my Raspberry Pi. But, whenever I go to the address, it says the following: This XML file does not appear to have any style information associated with it. The document tree is shown…
Sharan
  • 33
  • 5
3
votes
2 answers

Control raspberry pi via website in React.js?

I've written a nodejs application and put it on my raspberry pi. That's all good. However, I would now like to control my nodejs application via a web browser interface / website built in React. How would I do this? The website would be on the…
George Welder
  • 3,787
  • 11
  • 39
  • 75
3
votes
3 answers

Restarting GStreamer Pipeline in Python on EOS

I am working on a Python script running on RPi3, and using gstreamer to connect to RTSP feed of my IP Camera, and serve decoded H264 frames to my Python script. Here is the gstreamear pipeline used to get frames from camera: rtspsrc…
3
votes
1 answer

Redirect IP camera stream from a Raspberry to my website

So here's my setup: IP camera -> Raspberry Pi (Raspbian) -> WiFi -> my server I am currently using motion to retrieve the camera's stream on my RPi. I am able to view it on the local network (192.168.x.x:8080) through my browser (it's an Mjpeg…
lesurp
  • 343
  • 4
  • 19
3
votes
1 answer

Starting on boot Ruby on Rails server running on Raspberry Pi Raspbian

I am running Ruby on Rails server on a Raspberry Pi running Raspbian. I can start the production Rails server with this command rvmsudo rails server -b 0.0.0.0 -p 80 -e production. What is the best practice for running a production Ruby on Rails…
Gregology
  • 1,625
  • 2
  • 18
  • 32
3
votes
0 answers

Using node for facial recognition (not detection) and websockets?

I'm working on a robotics project with my raspberry pi and I want it to greet me when I walk in the room. I have facial recognition working using opencv-node, but wanted to take it a step further. I would like to user FaceRecognizer() provoded with…
rcpilotp51
  • 524
  • 1
  • 3
  • 22
3
votes
0 answers

Can I install Unity in Raspberry Pi 3 with Windows IOT?

I would like to create a Raspberry Pi 3 server with Win IOT as its OS for our git repositories and unity to build apps that are being developed in our desktop computers. Is this possible? thank you.
john
  • 97
  • 1
  • 8
3
votes
0 answers

Raspberry Pi with java programing - Jar does not run

I want to use a Raspberry Pi 3 to host a server for a game I am making. I tried using the built-in bluej ide to make a Hello World app that opens a simple JFrame. When I made it into a jar and launched it, it asked me what program to use to open the…
user7164928
  • 49
  • 1
  • 2