You may first need to turn off the UART functioning as a serial console by following the instructions here. The default setup of the UART is 115200-8-N-1 (115200 baud, 8 data bits, No partity, 1 stop bit and no flow control). What is current port setup? stty -F /dev/ttyAMA0 Transmit String This will send "hello" from the serial […]
All posts by
Using Model B SD Cards On The Model B+
SD cards should be interchangeable between a model B and a model B+ as long as the card was created since the release of the Model B+, or has been inserted into a model B since the B+ was released and these commands entered to update the OS and any other packages supported by apt-get: sudo apt-get update […]
IO pin control from the command line
:-( it looks like this page is no longer good for the lastest versions of RPi OS Elevate your permissions to root user to allow IO access sudo -i Setup to control pin as output Substitute 23 in the following commands for your GPIO number (GPIO, not pin number) echo “23” > /sys/class/gpio/export echo “out” […]
Model B+ Power
RPi Power Consumption Varies depending on how busy it is and what peripherals are connected. Running a GUI and running the GPU will take extra power. The USB devices and Ethernet connection will take power. General usage Typically, the Model B+ will use 600mA and upwards (up to a maximum of 2A) depending on what […]
Compute Module Schematics
Schematics for the Compute Module can be found here.
Compute Module IO Pins
Bank 0 GPIO GPIO0-27_VREF is the power supply for bank 0 and can be powered in the range 1.8V – 3.3V. (Must be powered even if GPIO is not used). GPIO0 / I2C0 SDA GPIO1 / I2C0 SCL GPIO2 / I2C1 SDA GPIO3 / I2C1 SCL GPIO4 / GPCLK0 GPIO5 / GPCLK1 GPIO6 / GPCLK2 GPIO7 / SPI0 CE1 GPIO8 / SPI0 CE0 GPIO9 / SPI0 MISO GPIO10 / SPI0 MOSI GPIO11 / SPI0 SCLK […]
Compute Module Documentation
Documentation for the Compute Module can be found here.
Model B+ IO Pins
Note that we are not currently sure if the new pin 27-40 PWM1, GPCLK1 and GPCLK2 peripheral pin functions will be made accessible under Raspbian and if so which pins they will be assigned to, hence the duplicated pins shown with these functions. Lost From The Model B Rev 2 Board The P5 connector is not […]
Model B+ schematics
The model B+ schematic is available from here. Currently only a reduced schematic has been released (2014-09) but they say they'll release a full schematic in due course.
Searching a text file
Search for strings within a text file #include <stdlib.h> #include <stdio.h> #include <string.h> const char email_receive_set_output_high_string[] = {"set_output_high"}; const char email_receive_set_output_low_string[] = {"set output low"}; FILE *fp=fopen("/home/pi/myproject/somefile","r"); char tmp[1024] = {0x0}; while(fp != NULL && fgets(tmp, sizeof(tmp), fp) != NULL) //fgets gets one line at a time, up to the max size – not the […]