diff --git a/draft/amend.sh b/draft/sync.sh similarity index 100% rename from draft/amend.sh rename to draft/sync.sh diff --git a/src/de/translate/ab-1-wire-plus.md b/src/de/translate/ab-1-wire-plus.md index 07768d0..3eb201e 100644 --- a/src/de/translate/ab-1-wire-plus.md +++ b/src/de/translate/ab-1-wire-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/60/1-Wire-Pi-Plus image: 'ab-1-wire-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #1 Wire Pi Plus -The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platforms. A 5V buffered I2C port is also provided on the board. +The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi. A 5V buffered I2C port is also provided on the board. The 1-Wire® port on the 1 Wire Pi Plus is based around a DS2482-100 I2C to 1-Wire® bridge device. The DS2482-100 provides bi-directional protocol conversion between the I2C port on the Raspberry Pi and any attached 1-Wire® slave devices. An ESD Protection Diode is used to protect the 1 Wire Pi Plus and Raspberry Pi from electrostatic spikes on the 1-Wire® port. Connections to the 1-Wire® port can be made through the RJ-12 socket or the solder points on the PCB. -The Quick2wire lib from [https://github.com/quick2wire/quick2wire-python-api](https://github.com/quick2wire/quick2wire-python-api) allows easy access to the I2C port via Python. +I2C address select solder jumpers give you the ability to set the I2C address of the 1 Wire Pi Plus allowing the board to be used with other I2C devices on the same bus. [https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi](https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi "Configuring and using the 1-Wire® port on your Raspberry Pi") \ No newline at end of file diff --git a/src/de/translate/ab-adc-differential-pi.md b/src/de/translate/ab-adc-differential-pi.md index dca0b1e..21caa1f 100644 --- a/src/de/translate/ab-adc-differential-pi.md +++ b/src/de/translate/ab-adc-differential-pi.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/65/ADC-Differential-Pi-Raspberry-Pi-Analo image: 'ab-adc-differential-pi.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Differential Pi -The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter des - 240 SPS (12 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file diff --git a/src/de/translate/ab-adc-pi-plus.md b/src/de/translate/ab-adc-pi-plus.md index 39d61f4..871390a 100644 --- a/src/de/translate/ab-adc-pi-plus.md +++ b/src/de/translate/ab-adc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/56/ADC-Pi-Plus-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Pi Plus -The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/de/translate/ab-adc-pi-zero.md b/src/de/translate/ab-adc-pi-zero.md index f863fc0..d3bcfb2 100644 --- a/src/de/translate/ab-adc-pi-zero.md +++ b/src/de/translate/ab-adc-pi-zero.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/69/ADC-Pi-Zero-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-zero.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '14': + '20': + '30': + '34': + '39': pin: '3': mode: i2c @@ -48,4 +57,4 @@ The ADC Pi Zero is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/de/translate/ab-io-pi-plus.md b/src/de/translate/ab-io-pi-plus.md index 399712f..ec8504b 100644 --- a/src/de/translate/ab-io-pi-plus.md +++ b/src/de/translate/ab-io-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/54/IO-Pi-Plus image: 'ab-io-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #IO Pi Plus -The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platform. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. +The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. A pair of MCP23017 expanders are included on the board allowing you to connect up to 32 digital inputs or outputs to the Raspberry Pi. The IO Pi Plus Expander is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the IO Pi Plus along with other expansion boards. @@ -45,4 +56,4 @@ A pair of MCP23017 expanders are included on the board allowing you to connect u - Configurable interrupt source - Interrupt-on-change from configured register defaults or pin changes - Polarity Inversion register to configure the polarity of the input port data -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/de/translate/ab-rtc-pi-plus.md b/src/de/translate/ab-rtc-pi-plus.md index ed4c3ec..625357a 100644 --- a/src/de/translate/ab-rtc-pi-plus.md +++ b/src/de/translate/ab-rtc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/52/RTC-Pi-Plus image: 'ab-rtc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #RTC Pi Plus -The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. +The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. The RTC Pi Plus is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the RTC Pi Plus along with other expansion boards. The RTC Pi Plus uses the DS1307 RTC real time clock and a CR2032 battery to maintain the date and time when the main system power is not available. Unlike most other DS1307 based RTC modules the RTC Pi also includes an I2C logic level converter allowing you to connect other 5V I2C devices to your Raspberry Pi. -Python 2 and 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/de/translate/ab-serial-pi-plus.md b/src/de/translate/ab-serial-pi-plus.md index 38dc2cd..c1a1aee 100644 --- a/src/de/translate/ab-serial-pi-plus.md +++ b/src/de/translate/ab-serial-pi-plus.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/51/Serial-Pi-Plus image: 'ab-serial-pi-plus.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': mode: UART diff --git a/src/de/translate/adafruit-cap-mpr121.md b/src/de/translate/adafruit-cap-mpr121.md index e17890e..c1cf7b3 100644 --- a/src/de/translate/adafruit-cap-mpr121.md +++ b/src/de/translate/adafruit-cap-mpr121.md @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -34,8 +41,27 @@ install: - 'python-dev' - 'python3-dev' --> -#Capacitive Touch HAT +# Capacitive Touch HAT This Raspberry Pi add-on board provides 12 capacitive touch inputs and all the logic to read them over a simple I2C communication bus. -Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. \ No newline at end of file +Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. + +## Code + +```python +from Adafruit_MPR121 import MPR121 +from time import sleep + +cap = MPR121.MPR121() + +last_touched = cap.touched() +while True: + current_touched = cap.touched() + for i in range(12): + pin_bit = 1 << i + if current_touched & pin_bit and not last_touched & pin_bit: + print("{} touched!".format(i)) + last_touched = current_touched + sleep(0.1) +``` diff --git a/src/de/translate/adafruit-servo-hat.md b/src/de/translate/adafruit-servo-hat.md index a35d644..0da7fee 100644 --- a/src/de/translate/adafruit-servo-hat.md +++ b/src/de/translate/adafruit-servo-hat.md @@ -2,7 +2,7 @@ --- name: Servo/PWM HAT class: board -type: touch +type: io,motor formfactor: HAT manufacturer: Adafruit description: A 16-Channel Servo / PWM HAT for Raspberry Pi @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/analog-zero.md b/src/de/translate/analog-zero.md index c6af4f0..2d96a04 100644 --- a/src/de/translate/analog-zero.md +++ b/src/de/translate/analog-zero.md @@ -12,7 +12,17 @@ buy: http://rasp.io/analogzero/ image: 'analog-zero.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '19': mode: spi @@ -28,7 +38,7 @@ install: --> #Analog Zero -The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analog channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. +The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analogue channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. With RasPiO Analog Zero you can: @@ -38,4 +48,25 @@ With RasPiO Analog Zero you can: * make a voltmeter * use potentiometer dials for control and display * read analog sensors or voltages -* make your own embedded device with minimal footprint \ No newline at end of file +* make your own embedded device with minimal footprint + +## Code + +```python +from gpiozero import MCP3008 +from time import sleep + +left_pot = MCP3008(0) +light = MCP3008(1) +temperature = MCP3008(2) +right_pot = MCP3008(3) + +while True: + print("Left pot value is {}".format(left_pot.value)) + print("Light sensor value is {}".format(light.value)) + print("Temperature sensor value is {}".format(temperature.value)) + print("Right pot value is {}".format(right_pot.value)) + sleep(1) +``` + +[GPIO Zero docs: MCP3008](http://gpiozero.readthedocs.io/en/v1.3.1/api_spi.html#gpiozero.MCP3008) diff --git a/src/de/translate/blinkt.md b/src/de/translate/blinkt.md index 2f76692..ed826c6 100644 --- a/src/de/translate/blinkt.md +++ b/src/de/translate/blinkt.md @@ -12,7 +12,10 @@ buy: https://shop.pimoroni.com/products/blinkt image: 'blinkt.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': pin: '16': name: Data @@ -23,6 +26,23 @@ pin: mode: output active: high --> -#Blinkt! +# Blinkt! -Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. \ No newline at end of file +Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. + +## Code + +```python +from blinkt import set_pixel, show +from random import randint +from time import sleep + +while True: + for pixel in range(8): + r = randint(255) + g = randint(255) + b = randint(255) + set_pixel(pixel, r, g, b) + show() + sleep(0.1) +``` diff --git a/src/de/translate/carberry.md b/src/de/translate/carberry.md index 8f6ca5a..eddfd57 100644 --- a/src/de/translate/carberry.md +++ b/src/de/translate/carberry.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/de/translate/cirruslogic-audio-card.md b/src/de/translate/cirruslogic-audio-card.md index 434f7b2..5a3498e 100644 --- a/src/de/translate/cirruslogic-audio-card.md +++ b/src/de/translate/cirruslogic-audio-card.md @@ -10,6 +10,18 @@ url: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-acce buy: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card image: 'cirruslogic-audio-card.png' pincount: 40 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA1 diff --git a/src/de/translate/discohat.md b/src/de/translate/discohat.md index d61a328..374b52b 100644 --- a/src/de/translate/discohat.md +++ b/src/de/translate/discohat.md @@ -11,6 +11,18 @@ buy: http://discohat.com/shop image: 'discohat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD diff --git a/src/de/translate/drum-hat.md b/src/de/translate/drum-hat.md index e1ef6a0..ce36571 100644 --- a/src/de/translate/drum-hat.md +++ b/src/de/translate/drum-hat.md @@ -2,7 +2,7 @@ --- name: Drum HAT class: board -type: instrument +type: instrument,touch formfactor: HAT manufacturer: Pimoroni description: An 8 pad finger Drum HAT for your Raspberry Pi @@ -12,6 +12,13 @@ buy: http://shop.pimoroni.com/products/drum-hat image: 'drum-hat.png' pincount: 40 eeprom: yes +power: + '2': + '17': +ground: + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/enviro-phat.md b/src/de/translate/enviro-phat.md index b253a52..5287339 100644 --- a/src/de/translate/enviro-phat.md +++ b/src/de/translate/enviro-phat.md @@ -2,7 +2,7 @@ --- name: Enviro pHAT class: board -type: iot,sensor +type: adc,sensor formfactor: pHAT manufacturer: Pimoroni description: A package of environmental sensors for IoT projects @@ -12,7 +12,17 @@ buy: https://shop.pimoroni.com/products/enviro-phat image: 'enviro-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -20,20 +30,20 @@ pin: mode: i2c '7': mode: output - name: Lights + name: LEDs i2c: - '0x29': - name: Light/Colour Sensor - device: TCS3472 '0x1d': name: Motion Sensor device: LSM303D + '0x29': + name: Light/Colour Sensor + device: TCS3472 + '0x49': + name: 4-Channel Analog Input + device: ADS1015 '0x77': name: Temp/Pressure Sensor device: BMP280 - '0x48': - name: 4-Channel Analog Input - device: ADS1015 --> #Enviro pHAT @@ -41,11 +51,12 @@ Coupled with a Pi Zero, Enviro pHAT is an affordable mix of sensors, ideal for m Features: -BMP280 temperature/pressure sensor (0x77 on the i2c bus) -TCS3472 light and RGB colour sensor (0x29 on the i2c bus) -(with two LEDs for illumination) -LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) -ADS1015 4-channel 3.3v 12-bit ADC (0x48 on the i2c bus) +* BMP280 temperature/pressure sensor (0x77 on the i2c bus) +* TCS3472 light and RGB colour sensor (0x29 on the i2c bus) +(with two GPIO controlled LEDs for illumination) +* LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) +* ADS1015 4-channel 5v tolerant 12-bit ADC (0x49 on the i2c bus) +(3.3v 12-bit ADC at address 0x48 in first production run of the board) To get the pHAT set up and ready to go you can use the one-line product installer: diff --git a/src/de/translate/espiot-phat.md b/src/de/translate/espiot-phat.md index 0b4c15f..534551b 100644 --- a/src/de/translate/espiot-phat.md +++ b/src/de/translate/espiot-phat.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/de/translate/explorer-phat.md b/src/de/translate/explorer-phat.md index a2c374d..e2b3643 100644 --- a/src/de/translate/explorer-phat.md +++ b/src/de/translate/explorer-phat.md @@ -12,6 +12,18 @@ buy: https://shop.pimoroni.com/products/explorer-phat image: 'explorer-phat.png' pincount: 40 eeprom: no +power: + '2': + '17': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/iface-1wire.md b/src/de/translate/iface-1wire.md index 938f208..c3c7644 100644 --- a/src/de/translate/iface-1wire.md +++ b/src/de/translate/iface-1wire.md @@ -11,7 +11,7 @@ pin: --> # W1-GPIO - One-Wire Interface -To enable the one-wire interface you need to add the following line to /boot/config.txt, beofre rebooting your Pi: +To enable the one-wire interface you need to add the following line to /boot/config.txt, before rebooting your Pi: ``` dtoverlay=w1-gpio diff --git a/src/de/translate/iqaudio-pi-dac.md b/src/de/translate/iqaudio-pi-dac.md index 8b297fb..cc9973e 100644 --- a/src/de/translate/iqaudio-pi-dac.md +++ b/src/de/translate/iqaudio-pi-dac.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-dac.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/iqaudio-pi-digiamp.md b/src/de/translate/iqaudio-pi-digiamp.md index 8ffda41..14b75f3 100644 --- a/src/de/translate/iqaudio-pi-digiamp.md +++ b/src/de/translate/iqaudio-pi-digiamp.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-digiamp.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -39,10 +51,9 @@ install: 'devices': - 'i2c' --> - #Pi-DigiAMP+ The Pi-DigiAMP+ is an add-on board that includes a Digital to Analog Converter (DAC) and powerful 35w stereo amplifier. If you want to turn your Raspberry Pi into a working Hi Fi stereo, just add speakers and you're off. You can use GPIO25 to connect an IR sensor and GPIO23/24 for a rotary encoder. Both of these parts are optional, but are broken out on the Pi-DAC+ for convenient access. -Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. \ No newline at end of file +Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. diff --git a/src/de/translate/microdot-phat.md b/src/de/translate/microdot-phat.md index 53a191e..b2f5d83 100644 --- a/src/de/translate/microdot-phat.md +++ b/src/de/translate/microdot-phat.md @@ -12,7 +12,11 @@ buy: https://shop.pimoroni.com/products/microdot-phat image: 'microdot-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/phat-dac.md b/src/de/translate/phat-dac.md index 8fd5d9c..3063da0 100644 --- a/src/de/translate/phat-dac.md +++ b/src/de/translate/phat-dac.md @@ -11,10 +11,16 @@ image: 'phat-dac.png' pincount: 40 eeprom: no power: - '1': '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: I2S diff --git a/src/de/translate/pi-liter.md b/src/de/translate/pi-liter.md index 579f4f9..9bfb9f7 100644 --- a/src/de/translate/pi-liter.md +++ b/src/de/translate/pi-liter.md @@ -6,12 +6,19 @@ type: led formfactor: Custom manufacturer: Ciseco description: An 8 LED strip for the Raspberry Pi -url: http://www.averagemanvsraspberrypi.com/2014/04/how-to-use-pi-liter-from-ciseco.html +url: http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter buy: http://cpc.farnell.com/wirelessthings/pi-liter/pi-lite-junior-led-io-board-for/dp/SC13293 image: 'pi-liter.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '7': name: LED1 @@ -56,4 +63,23 @@ Applications: * Bar graph * Light chaser * Activity indicator -* Lighting effects \ No newline at end of file +* Lighting effects + +## Code + +```python +from gpiozero import PiLiter +from time import sleep + +lite = PiLiter() + +for led in lite: + led.on() + sleep(0.1) + led.off() + +lite.on() +sleep(5) +``` + +[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter) diff --git a/src/de/translate/piborg-ledborg.md b/src/de/translate/piborg-ledborg.md index 593be25..95b2cc5 100644 --- a/src/de/translate/piborg-ledborg.md +++ b/src/de/translate/piborg-ledborg.md @@ -11,6 +11,15 @@ buy: https://www.piborg.org/ledborg image: 'piborg-led-borg.png' pincount: 26 eeprom: no +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': pin: '11': name: Red LED @@ -28,28 +37,30 @@ pin: active: high description: PiBorg Blue LED --> -#LedBorg +# LedBorg -The PiBorg LedBorg is an ultra-bright RGB LED board for the Raspberry Pi. It has its own driver, so you don't need to drive it manually. - -If you want a much, much wider range of colours, though, you can drive it manually using softPwm in WiringPi. The pin assignments for this are as follows: - -WiringPi pin 0: Red LED -WiringPi pin 2: Green LED -WiringPi pin 3: Blue LED - -This is easy using WiringPi in Python: +The PiBorg LedBorg is an ultra-bright RGB LED board for the Raspberry Pi. ```python -import wiringpi2 as wiringpi -wiringpi.wiringPiSetup() +from gpiozero import LedBorg +from time import sleep -wiringpi.softPwmCreate(0,0,100) -wiringpi.softPwmCreate(2,0,100) -wiringpi.softPwmCreate(3,0,100) +lb = LedBorg() -# Purple! -wiringpi.softPwmWrite(3,100) # Full Blue -wiringpi.softPwmWrite(0,100) # Full Red -wiringpi.softPWMWrite(2,0) # No Green +while True: + r, g, b = 0, 0, 0 + for i in range(100): + r = i / 100.0 + lb.value = (r, g, b) + sleep(0.01) + for i in range(100): + g = i / 100.0 + sleep(0.01) + lb.value = (r, g, b) + for i in range(100): + b = i / 100.0 + lb.value = (r, g, b) + sleep(0.01) ``` + +[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#ledborg) diff --git a/src/de/translate/propeller-hat.md b/src/de/translate/propeller-hat.md index 86d154b..ebeefd6 100644 --- a/src/de/translate/propeller-hat.md +++ b/src/de/translate/propeller-hat.md @@ -15,7 +15,13 @@ eeprom: yes power: '2': ground: - '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/de/translate/raspio-duino.md b/src/de/translate/raspio-duino.md index e38362a..9b175ee 100644 --- a/src/de/translate/raspio-duino.md +++ b/src/de/translate/raspio-duino.md @@ -12,7 +12,14 @@ buy: https://ryanteck.uk/add-ons/58-raspio-duino.html image: 'raspio-duino.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '8': mode: uart diff --git a/src/de/translate/redbear-iot-hat.md b/src/de/translate/redbear-iot-hat.md index 5e42b89..fb07d91 100644 --- a/src/de/translate/redbear-iot-hat.md +++ b/src/de/translate/redbear-iot-hat.md @@ -1,6 +1,6 @@ -#PiZero IoT HAT +#IoT pHAT -The RedBear IoT HAT brings the BCM43438 used on the Raspberry Pi 3 to HAT format, compatible with the Pi Zero. +The RedBear IoT pHAT brings the BCM43438 used on the Raspberry Pi 3 to pHAT format, compatible with the Pi Zero. The chip supports Wi-Fi 802.11n and Bluetooth 4.1 (Dual Mode). diff --git a/src/de/translate/scroll-phat.md b/src/de/translate/scroll-phat.md index 15505da..4fc363e 100644 --- a/src/de/translate/scroll-phat.md +++ b/src/de/translate/scroll-phat.md @@ -16,6 +16,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/sense-hat.md b/src/de/translate/sense-hat.md index e121e83..11ad544 100644 --- a/src/de/translate/sense-hat.md +++ b/src/de/translate/sense-hat.md @@ -10,6 +10,18 @@ url: https://www.raspberrypi.org/products/sense-hat/ image: 'sense-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/de/translate/unicorn-phat.md b/src/de/translate/unicorn-phat.md index ae1fd5f..8b147d5 100644 --- a/src/de/translate/unicorn-phat.md +++ b/src/de/translate/unicorn-phat.md @@ -15,7 +15,14 @@ eeprom: yes power: '2': ground: + '6': '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: Data @@ -36,7 +43,7 @@ install: 32 blindingly bright LEDs packed into a pHAT and driven with an ultra-fast, C library that you can talk to from Python make Unicorn HAT PiGlow's bigger, brighter brother. -Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! +Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets your Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! To get the HAT set up and ready to go you can use the one-line product installer: diff --git a/src/de/translate/uugear-7port-usb-hub.md b/src/de/translate/uugear-7port-usb-hub.md index 227943a..b52a4a7 100644 --- a/src/de/translate/uugear-7port-usb-hub.md +++ b/src/de/translate/uugear-7port-usb-hub.md @@ -9,9 +9,12 @@ description: 7-port USB hub for Raspberry Pi url: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ buy: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ image: 'uugear-7port-usb-hub.png' -pincount: 40 +pincount: 7 eeprom: no -power: 5v +power: + '2': +ground: + '39': --> #7-port USB hub for Raspberry Pi diff --git a/src/de/translate/uugear-witty-pi-2.md b/src/de/translate/uugear-witty-pi-2.md index 8f6d498..d7339b4 100644 --- a/src/de/translate/uugear-witty-pi-2.md +++ b/src/de/translate/uugear-witty-pi-2.md @@ -12,7 +12,18 @@ buy: http://www.uugear.com/product/wittypi2/ image: 'uugear-witty-pi-2.png' pincount: 40 eeprom: no -power: 5v,3v3 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/de/translate/uugear-witty-pi.md b/src/de/translate/uugear-witty-pi.md index 47ed0ae..7923089 100644 --- a/src/de/translate/uugear-witty-pi.md +++ b/src/de/translate/uugear-witty-pi.md @@ -12,7 +12,17 @@ buy: http://www.uugear.com/product/witty-pi-realtime-clock-and-power-management- image: 'uugear-witty-pi.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/de/translate/uugear-zero4u.md b/src/de/translate/uugear-zero4u.md index 58bfa60..e5c945c 100644 --- a/src/de/translate/uugear-zero4u.md +++ b/src/de/translate/uugear-zero4u.md @@ -9,9 +9,8 @@ description: 4-port USB hub for Raspberry Pi Zero url: http://www.uugear.com/product/zero4u/ buy: http://www.uugear.com/product/zero4u/ image: 'uugear-zero4u.png' -pincount: 40 +pincount: 4 eeprom: no -power: 5v --> #Zero4U diff --git a/src/de/translate/wifi-pants.md b/src/de/translate/wifi-pants.md index e43dff6..4b242a8 100644 --- a/src/de/translate/wifi-pants.md +++ b/src/de/translate/wifi-pants.md @@ -12,7 +12,17 @@ buy: https://www.tindie.com/products/ajlitt/wifi-power-pants/ image: 'wifi-pants.png' pincount: 40 eeprom: no -power: external +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '13': name: ESP GPIO10 diff --git a/src/de/translate/zero-lipo.md b/src/de/translate/zero-lipo.md index ecbb96b..9b277c9 100644 --- a/src/de/translate/zero-lipo.md +++ b/src/de/translate/zero-lipo.md @@ -11,7 +11,10 @@ buy: https://shop.pimoroni.com/products/zero-lipo image: 'zero-lipo.png' pincount: 8 eeprom: no -power: external +power: + '2': +ground: + '6': pin: '7': name: Battery Low diff --git a/src/es/translate/raspio-duino.md b/src/es/translate/raspio-duino.md index e38362a..9b175ee 100644 --- a/src/es/translate/raspio-duino.md +++ b/src/es/translate/raspio-duino.md @@ -12,7 +12,14 @@ buy: https://ryanteck.uk/add-ons/58-raspio-duino.html image: 'raspio-duino.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '8': mode: uart diff --git a/src/es/translate/redbear-iot-hat.md b/src/es/translate/redbear-iot-hat.md index 5e42b89..fb07d91 100644 --- a/src/es/translate/redbear-iot-hat.md +++ b/src/es/translate/redbear-iot-hat.md @@ -1,6 +1,6 @@ -#PiZero IoT HAT +#IoT pHAT -The RedBear IoT HAT brings the BCM43438 used on the Raspberry Pi 3 to HAT format, compatible with the Pi Zero. +The RedBear IoT pHAT brings the BCM43438 used on the Raspberry Pi 3 to pHAT format, compatible with the Pi Zero. The chip supports Wi-Fi 802.11n and Bluetooth 4.1 (Dual Mode). diff --git a/src/es/translate/scroll-phat.md b/src/es/translate/scroll-phat.md index 15505da..4fc363e 100644 --- a/src/es/translate/scroll-phat.md +++ b/src/es/translate/scroll-phat.md @@ -16,6 +16,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/es/translate/sense-hat.md b/src/es/translate/sense-hat.md index e121e83..11ad544 100644 --- a/src/es/translate/sense-hat.md +++ b/src/es/translate/sense-hat.md @@ -10,6 +10,18 @@ url: https://www.raspberrypi.org/products/sense-hat/ image: 'sense-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/es/translate/unicorn-phat.md b/src/es/translate/unicorn-phat.md index ae1fd5f..8b147d5 100644 --- a/src/es/translate/unicorn-phat.md +++ b/src/es/translate/unicorn-phat.md @@ -15,7 +15,14 @@ eeprom: yes power: '2': ground: + '6': '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: Data @@ -36,7 +43,7 @@ install: 32 blindingly bright LEDs packed into a pHAT and driven with an ultra-fast, C library that you can talk to from Python make Unicorn HAT PiGlow's bigger, brighter brother. -Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! +Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets your Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! To get the HAT set up and ready to go you can use the one-line product installer: diff --git a/src/es/translate/uugear-7port-usb-hub.md b/src/es/translate/uugear-7port-usb-hub.md index 227943a..b52a4a7 100644 --- a/src/es/translate/uugear-7port-usb-hub.md +++ b/src/es/translate/uugear-7port-usb-hub.md @@ -9,9 +9,12 @@ description: 7-port USB hub for Raspberry Pi url: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ buy: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ image: 'uugear-7port-usb-hub.png' -pincount: 40 +pincount: 7 eeprom: no -power: 5v +power: + '2': +ground: + '39': --> #7-port USB hub for Raspberry Pi diff --git a/src/es/translate/uugear-witty-pi-2.md b/src/es/translate/uugear-witty-pi-2.md index 8f6d498..d7339b4 100644 --- a/src/es/translate/uugear-witty-pi-2.md +++ b/src/es/translate/uugear-witty-pi-2.md @@ -12,7 +12,18 @@ buy: http://www.uugear.com/product/wittypi2/ image: 'uugear-witty-pi-2.png' pincount: 40 eeprom: no -power: 5v,3v3 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/es/translate/uugear-witty-pi.md b/src/es/translate/uugear-witty-pi.md index 47ed0ae..7923089 100644 --- a/src/es/translate/uugear-witty-pi.md +++ b/src/es/translate/uugear-witty-pi.md @@ -12,7 +12,17 @@ buy: http://www.uugear.com/product/witty-pi-realtime-clock-and-power-management- image: 'uugear-witty-pi.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/es/translate/uugear-zero4u.md b/src/es/translate/uugear-zero4u.md index 58bfa60..e5c945c 100644 --- a/src/es/translate/uugear-zero4u.md +++ b/src/es/translate/uugear-zero4u.md @@ -9,9 +9,8 @@ description: 4-port USB hub for Raspberry Pi Zero url: http://www.uugear.com/product/zero4u/ buy: http://www.uugear.com/product/zero4u/ image: 'uugear-zero4u.png' -pincount: 40 +pincount: 4 eeprom: no -power: 5v --> #Zero4U diff --git a/src/es/translate/wifi-pants.md b/src/es/translate/wifi-pants.md index e43dff6..4b242a8 100644 --- a/src/es/translate/wifi-pants.md +++ b/src/es/translate/wifi-pants.md @@ -12,7 +12,17 @@ buy: https://www.tindie.com/products/ajlitt/wifi-power-pants/ image: 'wifi-pants.png' pincount: 40 eeprom: no -power: external +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '13': name: ESP GPIO10 diff --git a/src/es/translate/zero-lipo.md b/src/es/translate/zero-lipo.md index ecbb96b..9b277c9 100644 --- a/src/es/translate/zero-lipo.md +++ b/src/es/translate/zero-lipo.md @@ -11,7 +11,10 @@ buy: https://shop.pimoroni.com/products/zero-lipo image: 'zero-lipo.png' pincount: 8 eeprom: no -power: external +power: + '2': +ground: + '6': pin: '7': name: Battery Low diff --git a/src/fr/translate/4tronix-pistep2d.md b/src/fr/translate/4tronix-pistep2d.md index 20243d2..5025df2 100644 --- a/src/fr/translate/4tronix-pistep2d.md +++ b/src/fr/translate/4tronix-pistep2d.md @@ -2,12 +2,12 @@ --- name: PiStep2 Dual class: board -type: Stepper Motor Driver +type: motor formfactor: pHAT manufacturer: 4tronix -description: A Dual Stepper Motor Driver for +description: A Dual Stepper Motor Driver for Raspberry Pi url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554 -github: +github: buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554 image: '4tronix-pistep2d.png' pincount: 40 @@ -46,8 +46,10 @@ pin: mode: output --> # PiStep2 Dual -Drive 2 uni-polar stepper motors using a single control board. -Uses a ULN2803 Darlington driver chip to drive the motors. -Ideal for use with 28BYJ48 stepper motors -Supported in Scratch GPIO as well as in Python + +Drive 2 uni-polar stepper motors using a single control board with the PiStep2 Dual. + +* Uses a ULN2803 Darlington driver chip to drive the motors +* Ideal for use with 28BYJ48 stepper motors +* Supported in Scratch GPIO as well as in Python diff --git a/src/fr/translate/4tronix-pistep2q.md b/src/fr/translate/4tronix-pistep2q.md index 7955e48..bd44e85 100644 --- a/src/fr/translate/4tronix-pistep2q.md +++ b/src/fr/translate/4tronix-pistep2q.md @@ -2,12 +2,12 @@ --- name: PiStep2 Quad class: board -type: Stepper Motor Driver +type: motor formfactor: pHAT manufacturer: 4tronix -description: A Quad Stepper Motor Driver for +description: A Quad Stepper Motor Driver for Raspberry Pi url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554 -github: +github: buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554 image: '4tronix-pistep2q.png' pincount: 40 @@ -70,8 +70,9 @@ pin: mode: output --> # PiStep2 Quad -Drive 4 uni-polar stepper motors using a single control board. -Uses ULN2803 Darlington driver chips to drive the motors. -Ideal for use with 28BYJ48 stepper motors -Supported in Scratch GPIO as well as in Python +Drive 4 uni-polar stepper motors using a single control board with the PiStep2 Quad. + +* Uses ULN2803 Darlington driver chips to drive the motors +* Ideal for use with 28BYJ48 stepper motors +* Supported in Scratch GPIO as well as in Python diff --git a/src/fr/translate/adafruit-cap-mpr121.md b/src/fr/translate/adafruit-cap-mpr121.md index e17890e..c1cf7b3 100644 --- a/src/fr/translate/adafruit-cap-mpr121.md +++ b/src/fr/translate/adafruit-cap-mpr121.md @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -34,8 +41,27 @@ install: - 'python-dev' - 'python3-dev' --> -#Capacitive Touch HAT +# Capacitive Touch HAT This Raspberry Pi add-on board provides 12 capacitive touch inputs and all the logic to read them over a simple I2C communication bus. -Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. \ No newline at end of file +Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. + +## Code + +```python +from Adafruit_MPR121 import MPR121 +from time import sleep + +cap = MPR121.MPR121() + +last_touched = cap.touched() +while True: + current_touched = cap.touched() + for i in range(12): + pin_bit = 1 << i + if current_touched & pin_bit and not last_touched & pin_bit: + print("{} touched!".format(i)) + last_touched = current_touched + sleep(0.1) +``` diff --git a/src/fr/translate/adafruit-servo-hat.md b/src/fr/translate/adafruit-servo-hat.md index a35d644..0da7fee 100644 --- a/src/fr/translate/adafruit-servo-hat.md +++ b/src/fr/translate/adafruit-servo-hat.md @@ -2,7 +2,7 @@ --- name: Servo/PWM HAT class: board -type: touch +type: io,motor formfactor: HAT manufacturer: Adafruit description: A 16-Channel Servo / PWM HAT for Raspberry Pi @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/analog-zero.md b/src/fr/translate/analog-zero.md index c6af4f0..2d96a04 100644 --- a/src/fr/translate/analog-zero.md +++ b/src/fr/translate/analog-zero.md @@ -12,7 +12,17 @@ buy: http://rasp.io/analogzero/ image: 'analog-zero.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '19': mode: spi @@ -28,7 +38,7 @@ install: --> #Analog Zero -The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analog channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. +The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analogue channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. With RasPiO Analog Zero you can: @@ -38,4 +48,25 @@ With RasPiO Analog Zero you can: * make a voltmeter * use potentiometer dials for control and display * read analog sensors or voltages -* make your own embedded device with minimal footprint \ No newline at end of file +* make your own embedded device with minimal footprint + +## Code + +```python +from gpiozero import MCP3008 +from time import sleep + +left_pot = MCP3008(0) +light = MCP3008(1) +temperature = MCP3008(2) +right_pot = MCP3008(3) + +while True: + print("Left pot value is {}".format(left_pot.value)) + print("Light sensor value is {}".format(light.value)) + print("Temperature sensor value is {}".format(temperature.value)) + print("Right pot value is {}".format(right_pot.value)) + sleep(1) +``` + +[GPIO Zero docs: MCP3008](http://gpiozero.readthedocs.io/en/v1.3.1/api_spi.html#gpiozero.MCP3008) diff --git a/src/fr/translate/blinkt.md b/src/fr/translate/blinkt.md index 2f76692..ed826c6 100644 --- a/src/fr/translate/blinkt.md +++ b/src/fr/translate/blinkt.md @@ -12,7 +12,10 @@ buy: https://shop.pimoroni.com/products/blinkt image: 'blinkt.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': pin: '16': name: Data @@ -23,6 +26,23 @@ pin: mode: output active: high --> -#Blinkt! +# Blinkt! -Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. \ No newline at end of file +Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. + +## Code + +```python +from blinkt import set_pixel, show +from random import randint +from time import sleep + +while True: + for pixel in range(8): + r = randint(255) + g = randint(255) + b = randint(255) + set_pixel(pixel, r, g, b) + show() + sleep(0.1) +``` diff --git a/src/fr/translate/carberry.md b/src/fr/translate/carberry.md index 8f6ca5a..eddfd57 100644 --- a/src/fr/translate/carberry.md +++ b/src/fr/translate/carberry.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/fr/translate/cirruslogic-audio-card.md b/src/fr/translate/cirruslogic-audio-card.md index 434f7b2..5a3498e 100644 --- a/src/fr/translate/cirruslogic-audio-card.md +++ b/src/fr/translate/cirruslogic-audio-card.md @@ -10,6 +10,18 @@ url: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-acce buy: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card image: 'cirruslogic-audio-card.png' pincount: 40 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA1 diff --git a/src/fr/translate/discohat.md b/src/fr/translate/discohat.md index d61a328..374b52b 100644 --- a/src/fr/translate/discohat.md +++ b/src/fr/translate/discohat.md @@ -11,6 +11,18 @@ buy: http://discohat.com/shop image: 'discohat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD diff --git a/src/fr/translate/drum-hat.md b/src/fr/translate/drum-hat.md index e1ef6a0..ce36571 100644 --- a/src/fr/translate/drum-hat.md +++ b/src/fr/translate/drum-hat.md @@ -2,7 +2,7 @@ --- name: Drum HAT class: board -type: instrument +type: instrument,touch formfactor: HAT manufacturer: Pimoroni description: An 8 pad finger Drum HAT for your Raspberry Pi @@ -12,6 +12,13 @@ buy: http://shop.pimoroni.com/products/drum-hat image: 'drum-hat.png' pincount: 40 eeprom: yes +power: + '2': + '17': +ground: + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/enviro-phat.md b/src/fr/translate/enviro-phat.md index b253a52..5287339 100644 --- a/src/fr/translate/enviro-phat.md +++ b/src/fr/translate/enviro-phat.md @@ -2,7 +2,7 @@ --- name: Enviro pHAT class: board -type: iot,sensor +type: adc,sensor formfactor: pHAT manufacturer: Pimoroni description: A package of environmental sensors for IoT projects @@ -12,7 +12,17 @@ buy: https://shop.pimoroni.com/products/enviro-phat image: 'enviro-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -20,20 +30,20 @@ pin: mode: i2c '7': mode: output - name: Lights + name: LEDs i2c: - '0x29': - name: Light/Colour Sensor - device: TCS3472 '0x1d': name: Motion Sensor device: LSM303D + '0x29': + name: Light/Colour Sensor + device: TCS3472 + '0x49': + name: 4-Channel Analog Input + device: ADS1015 '0x77': name: Temp/Pressure Sensor device: BMP280 - '0x48': - name: 4-Channel Analog Input - device: ADS1015 --> #Enviro pHAT @@ -41,11 +51,12 @@ Coupled with a Pi Zero, Enviro pHAT is an affordable mix of sensors, ideal for m Features: -BMP280 temperature/pressure sensor (0x77 on the i2c bus) -TCS3472 light and RGB colour sensor (0x29 on the i2c bus) -(with two LEDs for illumination) -LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) -ADS1015 4-channel 3.3v 12-bit ADC (0x48 on the i2c bus) +* BMP280 temperature/pressure sensor (0x77 on the i2c bus) +* TCS3472 light and RGB colour sensor (0x29 on the i2c bus) +(with two GPIO controlled LEDs for illumination) +* LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) +* ADS1015 4-channel 5v tolerant 12-bit ADC (0x49 on the i2c bus) +(3.3v 12-bit ADC at address 0x48 in first production run of the board) To get the pHAT set up and ready to go you can use the one-line product installer: diff --git a/src/fr/translate/espiot-phat.md b/src/fr/translate/espiot-phat.md index 0b4c15f..534551b 100644 --- a/src/fr/translate/espiot-phat.md +++ b/src/fr/translate/espiot-phat.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/fr/translate/explorer-phat.md b/src/fr/translate/explorer-phat.md index a2c374d..e2b3643 100644 --- a/src/fr/translate/explorer-phat.md +++ b/src/fr/translate/explorer-phat.md @@ -12,6 +12,18 @@ buy: https://shop.pimoroni.com/products/explorer-phat image: 'explorer-phat.png' pincount: 40 eeprom: no +power: + '2': + '17': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/iface-1wire.md b/src/fr/translate/iface-1wire.md index 938f208..c3c7644 100644 --- a/src/fr/translate/iface-1wire.md +++ b/src/fr/translate/iface-1wire.md @@ -11,7 +11,7 @@ pin: --> # W1-GPIO - One-Wire Interface -To enable the one-wire interface you need to add the following line to /boot/config.txt, beofre rebooting your Pi: +To enable the one-wire interface you need to add the following line to /boot/config.txt, before rebooting your Pi: ``` dtoverlay=w1-gpio diff --git a/src/fr/translate/iqaudio-pi-digiamp.md b/src/fr/translate/iqaudio-pi-digiamp.md index 8ffda41..14b75f3 100644 --- a/src/fr/translate/iqaudio-pi-digiamp.md +++ b/src/fr/translate/iqaudio-pi-digiamp.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-digiamp.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -39,10 +51,9 @@ install: 'devices': - 'i2c' --> - #Pi-DigiAMP+ The Pi-DigiAMP+ is an add-on board that includes a Digital to Analog Converter (DAC) and powerful 35w stereo amplifier. If you want to turn your Raspberry Pi into a working Hi Fi stereo, just add speakers and you're off. You can use GPIO25 to connect an IR sensor and GPIO23/24 for a rotary encoder. Both of these parts are optional, but are broken out on the Pi-DAC+ for convenient access. -Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. \ No newline at end of file +Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. diff --git a/src/fr/translate/microdot-phat.md b/src/fr/translate/microdot-phat.md index 53a191e..b2f5d83 100644 --- a/src/fr/translate/microdot-phat.md +++ b/src/fr/translate/microdot-phat.md @@ -12,7 +12,11 @@ buy: https://shop.pimoroni.com/products/microdot-phat image: 'microdot-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/phat-dac.md b/src/fr/translate/phat-dac.md index 8fd5d9c..3063da0 100644 --- a/src/fr/translate/phat-dac.md +++ b/src/fr/translate/phat-dac.md @@ -11,10 +11,16 @@ image: 'phat-dac.png' pincount: 40 eeprom: no power: - '1': '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: I2S diff --git a/src/fr/translate/pi-liter.md b/src/fr/translate/pi-liter.md index 579f4f9..9bfb9f7 100644 --- a/src/fr/translate/pi-liter.md +++ b/src/fr/translate/pi-liter.md @@ -6,12 +6,19 @@ type: led formfactor: Custom manufacturer: Ciseco description: An 8 LED strip for the Raspberry Pi -url: http://www.averagemanvsraspberrypi.com/2014/04/how-to-use-pi-liter-from-ciseco.html +url: http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter buy: http://cpc.farnell.com/wirelessthings/pi-liter/pi-lite-junior-led-io-board-for/dp/SC13293 image: 'pi-liter.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '7': name: LED1 @@ -56,4 +63,23 @@ Applications: * Bar graph * Light chaser * Activity indicator -* Lighting effects \ No newline at end of file +* Lighting effects + +## Code + +```python +from gpiozero import PiLiter +from time import sleep + +lite = PiLiter() + +for led in lite: + led.on() + sleep(0.1) + led.off() + +lite.on() +sleep(5) +``` + +[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter) diff --git a/src/fr/translate/propeller-hat.md b/src/fr/translate/propeller-hat.md index 86d154b..ebeefd6 100644 --- a/src/fr/translate/propeller-hat.md +++ b/src/fr/translate/propeller-hat.md @@ -15,7 +15,13 @@ eeprom: yes power: '2': ground: - '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/fr/translate/raspio-duino.md b/src/fr/translate/raspio-duino.md index e38362a..9b175ee 100644 --- a/src/fr/translate/raspio-duino.md +++ b/src/fr/translate/raspio-duino.md @@ -12,7 +12,14 @@ buy: https://ryanteck.uk/add-ons/58-raspio-duino.html image: 'raspio-duino.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '8': mode: uart diff --git a/src/fr/translate/redbear-iot-hat.md b/src/fr/translate/redbear-iot-hat.md index 5e42b89..fb07d91 100644 --- a/src/fr/translate/redbear-iot-hat.md +++ b/src/fr/translate/redbear-iot-hat.md @@ -1,6 +1,6 @@ -#PiZero IoT HAT +#IoT pHAT -The RedBear IoT HAT brings the BCM43438 used on the Raspberry Pi 3 to HAT format, compatible with the Pi Zero. +The RedBear IoT pHAT brings the BCM43438 used on the Raspberry Pi 3 to pHAT format, compatible with the Pi Zero. The chip supports Wi-Fi 802.11n and Bluetooth 4.1 (Dual Mode). diff --git a/src/fr/translate/scroll-phat.md b/src/fr/translate/scroll-phat.md index 15505da..4fc363e 100644 --- a/src/fr/translate/scroll-phat.md +++ b/src/fr/translate/scroll-phat.md @@ -16,6 +16,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/sense-hat.md b/src/fr/translate/sense-hat.md index e121e83..11ad544 100644 --- a/src/fr/translate/sense-hat.md +++ b/src/fr/translate/sense-hat.md @@ -10,6 +10,18 @@ url: https://www.raspberrypi.org/products/sense-hat/ image: 'sense-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/fr/translate/unicorn-phat.md b/src/fr/translate/unicorn-phat.md index ae1fd5f..8b147d5 100644 --- a/src/fr/translate/unicorn-phat.md +++ b/src/fr/translate/unicorn-phat.md @@ -15,7 +15,14 @@ eeprom: yes power: '2': ground: + '6': '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: Data @@ -36,7 +43,7 @@ install: 32 blindingly bright LEDs packed into a pHAT and driven with an ultra-fast, C library that you can talk to from Python make Unicorn HAT PiGlow's bigger, brighter brother. -Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! +Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets your Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! To get the HAT set up and ready to go you can use the one-line product installer: diff --git a/src/fr/translate/uugear-7port-usb-hub.md b/src/fr/translate/uugear-7port-usb-hub.md index 227943a..b52a4a7 100644 --- a/src/fr/translate/uugear-7port-usb-hub.md +++ b/src/fr/translate/uugear-7port-usb-hub.md @@ -9,9 +9,12 @@ description: 7-port USB hub for Raspberry Pi url: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ buy: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ image: 'uugear-7port-usb-hub.png' -pincount: 40 +pincount: 7 eeprom: no -power: 5v +power: + '2': +ground: + '39': --> #7-port USB hub for Raspberry Pi diff --git a/src/fr/translate/uugear-witty-pi-2.md b/src/fr/translate/uugear-witty-pi-2.md index 8f6d498..d7339b4 100644 --- a/src/fr/translate/uugear-witty-pi-2.md +++ b/src/fr/translate/uugear-witty-pi-2.md @@ -12,7 +12,18 @@ buy: http://www.uugear.com/product/wittypi2/ image: 'uugear-witty-pi-2.png' pincount: 40 eeprom: no -power: 5v,3v3 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/fr/translate/uugear-witty-pi.md b/src/fr/translate/uugear-witty-pi.md index 47ed0ae..7923089 100644 --- a/src/fr/translate/uugear-witty-pi.md +++ b/src/fr/translate/uugear-witty-pi.md @@ -12,7 +12,17 @@ buy: http://www.uugear.com/product/witty-pi-realtime-clock-and-power-management- image: 'uugear-witty-pi.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/fr/translate/uugear-zero4u.md b/src/fr/translate/uugear-zero4u.md index 58bfa60..e5c945c 100644 --- a/src/fr/translate/uugear-zero4u.md +++ b/src/fr/translate/uugear-zero4u.md @@ -9,9 +9,8 @@ description: 4-port USB hub for Raspberry Pi Zero url: http://www.uugear.com/product/zero4u/ buy: http://www.uugear.com/product/zero4u/ image: 'uugear-zero4u.png' -pincount: 40 +pincount: 4 eeprom: no -power: 5v --> #Zero4U diff --git a/src/fr/translate/wifi-pants.md b/src/fr/translate/wifi-pants.md index e43dff6..4b242a8 100644 --- a/src/fr/translate/wifi-pants.md +++ b/src/fr/translate/wifi-pants.md @@ -12,7 +12,17 @@ buy: https://www.tindie.com/products/ajlitt/wifi-power-pants/ image: 'wifi-pants.png' pincount: 40 eeprom: no -power: external +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '13': name: ESP GPIO10 diff --git a/src/fr/translate/zero-lipo.md b/src/fr/translate/zero-lipo.md index ecbb96b..9b277c9 100644 --- a/src/fr/translate/zero-lipo.md +++ b/src/fr/translate/zero-lipo.md @@ -11,7 +11,10 @@ buy: https://shop.pimoroni.com/products/zero-lipo image: 'zero-lipo.png' pincount: 8 eeprom: no -power: external +power: + '2': +ground: + '6': pin: '7': name: Battery Low diff --git a/src/it/translate/ab-1-wire-plus.md b/src/it/translate/ab-1-wire-plus.md index 07768d0..3eb201e 100644 --- a/src/it/translate/ab-1-wire-plus.md +++ b/src/it/translate/ab-1-wire-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/60/1-Wire-Pi-Plus image: 'ab-1-wire-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #1 Wire Pi Plus -The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platforms. A 5V buffered I2C port is also provided on the board. +The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi. A 5V buffered I2C port is also provided on the board. The 1-Wire® port on the 1 Wire Pi Plus is based around a DS2482-100 I2C to 1-Wire® bridge device. The DS2482-100 provides bi-directional protocol conversion between the I2C port on the Raspberry Pi and any attached 1-Wire® slave devices. An ESD Protection Diode is used to protect the 1 Wire Pi Plus and Raspberry Pi from electrostatic spikes on the 1-Wire® port. Connections to the 1-Wire® port can be made through the RJ-12 socket or the solder points on the PCB. -The Quick2wire lib from [https://github.com/quick2wire/quick2wire-python-api](https://github.com/quick2wire/quick2wire-python-api) allows easy access to the I2C port via Python. +I2C address select solder jumpers give you the ability to set the I2C address of the 1 Wire Pi Plus allowing the board to be used with other I2C devices on the same bus. [https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi](https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi "Configuring and using the 1-Wire® port on your Raspberry Pi") \ No newline at end of file diff --git a/src/it/translate/ab-adc-differential-pi.md b/src/it/translate/ab-adc-differential-pi.md index dca0b1e..21caa1f 100644 --- a/src/it/translate/ab-adc-differential-pi.md +++ b/src/it/translate/ab-adc-differential-pi.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/65/ADC-Differential-Pi-Raspberry-Pi-Analo image: 'ab-adc-differential-pi.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Differential Pi -The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter des - 240 SPS (12 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file diff --git a/src/it/translate/ab-adc-pi-plus.md b/src/it/translate/ab-adc-pi-plus.md index 39d61f4..871390a 100644 --- a/src/it/translate/ab-adc-pi-plus.md +++ b/src/it/translate/ab-adc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/56/ADC-Pi-Plus-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Pi Plus -The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/it/translate/ab-adc-pi-zero.md b/src/it/translate/ab-adc-pi-zero.md index f863fc0..d3bcfb2 100644 --- a/src/it/translate/ab-adc-pi-zero.md +++ b/src/it/translate/ab-adc-pi-zero.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/69/ADC-Pi-Zero-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-zero.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '14': + '20': + '30': + '34': + '39': pin: '3': mode: i2c @@ -48,4 +57,4 @@ The ADC Pi Zero is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/it/translate/ab-io-pi-plus.md b/src/it/translate/ab-io-pi-plus.md index 399712f..ec8504b 100644 --- a/src/it/translate/ab-io-pi-plus.md +++ b/src/it/translate/ab-io-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/54/IO-Pi-Plus image: 'ab-io-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #IO Pi Plus -The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platform. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. +The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. A pair of MCP23017 expanders are included on the board allowing you to connect up to 32 digital inputs or outputs to the Raspberry Pi. The IO Pi Plus Expander is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the IO Pi Plus along with other expansion boards. @@ -45,4 +56,4 @@ A pair of MCP23017 expanders are included on the board allowing you to connect u - Configurable interrupt source - Interrupt-on-change from configured register defaults or pin changes - Polarity Inversion register to configure the polarity of the input port data -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/it/translate/ab-rtc-pi-plus.md b/src/it/translate/ab-rtc-pi-plus.md index ed4c3ec..625357a 100644 --- a/src/it/translate/ab-rtc-pi-plus.md +++ b/src/it/translate/ab-rtc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/52/RTC-Pi-Plus image: 'ab-rtc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #RTC Pi Plus -The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. +The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. The RTC Pi Plus is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the RTC Pi Plus along with other expansion boards. The RTC Pi Plus uses the DS1307 RTC real time clock and a CR2032 battery to maintain the date and time when the main system power is not available. Unlike most other DS1307 based RTC modules the RTC Pi also includes an I2C logic level converter allowing you to connect other 5V I2C devices to your Raspberry Pi. -Python 2 and 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/it/translate/ab-serial-pi-plus.md b/src/it/translate/ab-serial-pi-plus.md index 38dc2cd..c1a1aee 100644 --- a/src/it/translate/ab-serial-pi-plus.md +++ b/src/it/translate/ab-serial-pi-plus.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/51/Serial-Pi-Plus image: 'ab-serial-pi-plus.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': mode: UART diff --git a/src/it/translate/adafruit-cap-mpr121.md b/src/it/translate/adafruit-cap-mpr121.md index e17890e..c1cf7b3 100644 --- a/src/it/translate/adafruit-cap-mpr121.md +++ b/src/it/translate/adafruit-cap-mpr121.md @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -34,8 +41,27 @@ install: - 'python-dev' - 'python3-dev' --> -#Capacitive Touch HAT +# Capacitive Touch HAT This Raspberry Pi add-on board provides 12 capacitive touch inputs and all the logic to read them over a simple I2C communication bus. -Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. \ No newline at end of file +Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. + +## Code + +```python +from Adafruit_MPR121 import MPR121 +from time import sleep + +cap = MPR121.MPR121() + +last_touched = cap.touched() +while True: + current_touched = cap.touched() + for i in range(12): + pin_bit = 1 << i + if current_touched & pin_bit and not last_touched & pin_bit: + print("{} touched!".format(i)) + last_touched = current_touched + sleep(0.1) +``` diff --git a/src/it/translate/adafruit-servo-hat.md b/src/it/translate/adafruit-servo-hat.md index a35d644..0da7fee 100644 --- a/src/it/translate/adafruit-servo-hat.md +++ b/src/it/translate/adafruit-servo-hat.md @@ -2,7 +2,7 @@ --- name: Servo/PWM HAT class: board -type: touch +type: io,motor formfactor: HAT manufacturer: Adafruit description: A 16-Channel Servo / PWM HAT for Raspberry Pi @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/analog-zero.md b/src/it/translate/analog-zero.md index c6af4f0..2d96a04 100644 --- a/src/it/translate/analog-zero.md +++ b/src/it/translate/analog-zero.md @@ -12,7 +12,17 @@ buy: http://rasp.io/analogzero/ image: 'analog-zero.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '19': mode: spi @@ -28,7 +38,7 @@ install: --> #Analog Zero -The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analog channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. +The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analogue channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. With RasPiO Analog Zero you can: @@ -38,4 +48,25 @@ With RasPiO Analog Zero you can: * make a voltmeter * use potentiometer dials for control and display * read analog sensors or voltages -* make your own embedded device with minimal footprint \ No newline at end of file +* make your own embedded device with minimal footprint + +## Code + +```python +from gpiozero import MCP3008 +from time import sleep + +left_pot = MCP3008(0) +light = MCP3008(1) +temperature = MCP3008(2) +right_pot = MCP3008(3) + +while True: + print("Left pot value is {}".format(left_pot.value)) + print("Light sensor value is {}".format(light.value)) + print("Temperature sensor value is {}".format(temperature.value)) + print("Right pot value is {}".format(right_pot.value)) + sleep(1) +``` + +[GPIO Zero docs: MCP3008](http://gpiozero.readthedocs.io/en/v1.3.1/api_spi.html#gpiozero.MCP3008) diff --git a/src/it/translate/blinkt.md b/src/it/translate/blinkt.md index 2f76692..ed826c6 100644 --- a/src/it/translate/blinkt.md +++ b/src/it/translate/blinkt.md @@ -12,7 +12,10 @@ buy: https://shop.pimoroni.com/products/blinkt image: 'blinkt.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': pin: '16': name: Data @@ -23,6 +26,23 @@ pin: mode: output active: high --> -#Blinkt! +# Blinkt! -Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. \ No newline at end of file +Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. + +## Code + +```python +from blinkt import set_pixel, show +from random import randint +from time import sleep + +while True: + for pixel in range(8): + r = randint(255) + g = randint(255) + b = randint(255) + set_pixel(pixel, r, g, b) + show() + sleep(0.1) +``` diff --git a/src/it/translate/carberry.md b/src/it/translate/carberry.md index 8f6ca5a..eddfd57 100644 --- a/src/it/translate/carberry.md +++ b/src/it/translate/carberry.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/it/translate/cirruslogic-audio-card.md b/src/it/translate/cirruslogic-audio-card.md index 434f7b2..5a3498e 100644 --- a/src/it/translate/cirruslogic-audio-card.md +++ b/src/it/translate/cirruslogic-audio-card.md @@ -10,6 +10,18 @@ url: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-acce buy: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card image: 'cirruslogic-audio-card.png' pincount: 40 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA1 diff --git a/src/it/translate/discohat.md b/src/it/translate/discohat.md index d61a328..374b52b 100644 --- a/src/it/translate/discohat.md +++ b/src/it/translate/discohat.md @@ -11,6 +11,18 @@ buy: http://discohat.com/shop image: 'discohat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD diff --git a/src/it/translate/drum-hat.md b/src/it/translate/drum-hat.md index e1ef6a0..ce36571 100644 --- a/src/it/translate/drum-hat.md +++ b/src/it/translate/drum-hat.md @@ -2,7 +2,7 @@ --- name: Drum HAT class: board -type: instrument +type: instrument,touch formfactor: HAT manufacturer: Pimoroni description: An 8 pad finger Drum HAT for your Raspberry Pi @@ -12,6 +12,13 @@ buy: http://shop.pimoroni.com/products/drum-hat image: 'drum-hat.png' pincount: 40 eeprom: yes +power: + '2': + '17': +ground: + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/enviro-phat.md b/src/it/translate/enviro-phat.md index b253a52..5287339 100644 --- a/src/it/translate/enviro-phat.md +++ b/src/it/translate/enviro-phat.md @@ -2,7 +2,7 @@ --- name: Enviro pHAT class: board -type: iot,sensor +type: adc,sensor formfactor: pHAT manufacturer: Pimoroni description: A package of environmental sensors for IoT projects @@ -12,7 +12,17 @@ buy: https://shop.pimoroni.com/products/enviro-phat image: 'enviro-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -20,20 +30,20 @@ pin: mode: i2c '7': mode: output - name: Lights + name: LEDs i2c: - '0x29': - name: Light/Colour Sensor - device: TCS3472 '0x1d': name: Motion Sensor device: LSM303D + '0x29': + name: Light/Colour Sensor + device: TCS3472 + '0x49': + name: 4-Channel Analog Input + device: ADS1015 '0x77': name: Temp/Pressure Sensor device: BMP280 - '0x48': - name: 4-Channel Analog Input - device: ADS1015 --> #Enviro pHAT @@ -41,11 +51,12 @@ Coupled with a Pi Zero, Enviro pHAT is an affordable mix of sensors, ideal for m Features: -BMP280 temperature/pressure sensor (0x77 on the i2c bus) -TCS3472 light and RGB colour sensor (0x29 on the i2c bus) -(with two LEDs for illumination) -LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) -ADS1015 4-channel 3.3v 12-bit ADC (0x48 on the i2c bus) +* BMP280 temperature/pressure sensor (0x77 on the i2c bus) +* TCS3472 light and RGB colour sensor (0x29 on the i2c bus) +(with two GPIO controlled LEDs for illumination) +* LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) +* ADS1015 4-channel 5v tolerant 12-bit ADC (0x49 on the i2c bus) +(3.3v 12-bit ADC at address 0x48 in first production run of the board) To get the pHAT set up and ready to go you can use the one-line product installer: diff --git a/src/it/translate/espiot-phat.md b/src/it/translate/espiot-phat.md index 0b4c15f..534551b 100644 --- a/src/it/translate/espiot-phat.md +++ b/src/it/translate/espiot-phat.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/it/translate/explorer-phat.md b/src/it/translate/explorer-phat.md index a2c374d..e2b3643 100644 --- a/src/it/translate/explorer-phat.md +++ b/src/it/translate/explorer-phat.md @@ -12,6 +12,18 @@ buy: https://shop.pimoroni.com/products/explorer-phat image: 'explorer-phat.png' pincount: 40 eeprom: no +power: + '2': + '17': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/iface-1wire.md b/src/it/translate/iface-1wire.md index 938f208..c3c7644 100644 --- a/src/it/translate/iface-1wire.md +++ b/src/it/translate/iface-1wire.md @@ -11,7 +11,7 @@ pin: --> # W1-GPIO - One-Wire Interface -To enable the one-wire interface you need to add the following line to /boot/config.txt, beofre rebooting your Pi: +To enable the one-wire interface you need to add the following line to /boot/config.txt, before rebooting your Pi: ``` dtoverlay=w1-gpio diff --git a/src/it/translate/iqaudio-pi-digiamp.md b/src/it/translate/iqaudio-pi-digiamp.md index 8ffda41..14b75f3 100644 --- a/src/it/translate/iqaudio-pi-digiamp.md +++ b/src/it/translate/iqaudio-pi-digiamp.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-digiamp.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -39,10 +51,9 @@ install: 'devices': - 'i2c' --> - #Pi-DigiAMP+ The Pi-DigiAMP+ is an add-on board that includes a Digital to Analog Converter (DAC) and powerful 35w stereo amplifier. If you want to turn your Raspberry Pi into a working Hi Fi stereo, just add speakers and you're off. You can use GPIO25 to connect an IR sensor and GPIO23/24 for a rotary encoder. Both of these parts are optional, but are broken out on the Pi-DAC+ for convenient access. -Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. \ No newline at end of file +Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. diff --git a/src/it/translate/microdot-phat.md b/src/it/translate/microdot-phat.md index 53a191e..b2f5d83 100644 --- a/src/it/translate/microdot-phat.md +++ b/src/it/translate/microdot-phat.md @@ -12,7 +12,11 @@ buy: https://shop.pimoroni.com/products/microdot-phat image: 'microdot-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/phat-dac.md b/src/it/translate/phat-dac.md index 8fd5d9c..3063da0 100644 --- a/src/it/translate/phat-dac.md +++ b/src/it/translate/phat-dac.md @@ -11,10 +11,16 @@ image: 'phat-dac.png' pincount: 40 eeprom: no power: - '1': '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: I2S diff --git a/src/it/translate/pi-liter.md b/src/it/translate/pi-liter.md index 579f4f9..9bfb9f7 100644 --- a/src/it/translate/pi-liter.md +++ b/src/it/translate/pi-liter.md @@ -6,12 +6,19 @@ type: led formfactor: Custom manufacturer: Ciseco description: An 8 LED strip for the Raspberry Pi -url: http://www.averagemanvsraspberrypi.com/2014/04/how-to-use-pi-liter-from-ciseco.html +url: http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter buy: http://cpc.farnell.com/wirelessthings/pi-liter/pi-lite-junior-led-io-board-for/dp/SC13293 image: 'pi-liter.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '7': name: LED1 @@ -56,4 +63,23 @@ Applications: * Bar graph * Light chaser * Activity indicator -* Lighting effects \ No newline at end of file +* Lighting effects + +## Code + +```python +from gpiozero import PiLiter +from time import sleep + +lite = PiLiter() + +for led in lite: + led.on() + sleep(0.1) + led.off() + +lite.on() +sleep(5) +``` + +[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter) diff --git a/src/it/translate/propeller-hat.md b/src/it/translate/propeller-hat.md index 86d154b..ebeefd6 100644 --- a/src/it/translate/propeller-hat.md +++ b/src/it/translate/propeller-hat.md @@ -15,7 +15,13 @@ eeprom: yes power: '2': ground: - '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/it/translate/raspio-duino.md b/src/it/translate/raspio-duino.md index e38362a..9b175ee 100644 --- a/src/it/translate/raspio-duino.md +++ b/src/it/translate/raspio-duino.md @@ -12,7 +12,14 @@ buy: https://ryanteck.uk/add-ons/58-raspio-duino.html image: 'raspio-duino.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '8': mode: uart diff --git a/src/it/translate/redbear-iot-hat.md b/src/it/translate/redbear-iot-hat.md index 5e42b89..fb07d91 100644 --- a/src/it/translate/redbear-iot-hat.md +++ b/src/it/translate/redbear-iot-hat.md @@ -1,6 +1,6 @@ -#PiZero IoT HAT +#IoT pHAT -The RedBear IoT HAT brings the BCM43438 used on the Raspberry Pi 3 to HAT format, compatible with the Pi Zero. +The RedBear IoT pHAT brings the BCM43438 used on the Raspberry Pi 3 to pHAT format, compatible with the Pi Zero. The chip supports Wi-Fi 802.11n and Bluetooth 4.1 (Dual Mode). diff --git a/src/it/translate/scroll-phat.md b/src/it/translate/scroll-phat.md index 15505da..4fc363e 100644 --- a/src/it/translate/scroll-phat.md +++ b/src/it/translate/scroll-phat.md @@ -16,6 +16,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/sense-hat.md b/src/it/translate/sense-hat.md index e121e83..11ad544 100644 --- a/src/it/translate/sense-hat.md +++ b/src/it/translate/sense-hat.md @@ -10,6 +10,18 @@ url: https://www.raspberrypi.org/products/sense-hat/ image: 'sense-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/it/translate/unicorn-phat.md b/src/it/translate/unicorn-phat.md index ae1fd5f..8b147d5 100644 --- a/src/it/translate/unicorn-phat.md +++ b/src/it/translate/unicorn-phat.md @@ -15,7 +15,14 @@ eeprom: yes power: '2': ground: + '6': '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: Data @@ -36,7 +43,7 @@ install: 32 blindingly bright LEDs packed into a pHAT and driven with an ultra-fast, C library that you can talk to from Python make Unicorn HAT PiGlow's bigger, brighter brother. -Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! +Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets your Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! To get the HAT set up and ready to go you can use the one-line product installer: diff --git a/src/it/translate/uugear-7port-usb-hub.md b/src/it/translate/uugear-7port-usb-hub.md index 227943a..b52a4a7 100644 --- a/src/it/translate/uugear-7port-usb-hub.md +++ b/src/it/translate/uugear-7port-usb-hub.md @@ -9,9 +9,12 @@ description: 7-port USB hub for Raspberry Pi url: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ buy: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ image: 'uugear-7port-usb-hub.png' -pincount: 40 +pincount: 7 eeprom: no -power: 5v +power: + '2': +ground: + '39': --> #7-port USB hub for Raspberry Pi diff --git a/src/it/translate/uugear-witty-pi-2.md b/src/it/translate/uugear-witty-pi-2.md index 8f6d498..d7339b4 100644 --- a/src/it/translate/uugear-witty-pi-2.md +++ b/src/it/translate/uugear-witty-pi-2.md @@ -12,7 +12,18 @@ buy: http://www.uugear.com/product/wittypi2/ image: 'uugear-witty-pi-2.png' pincount: 40 eeprom: no -power: 5v,3v3 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/it/translate/uugear-witty-pi.md b/src/it/translate/uugear-witty-pi.md index 47ed0ae..7923089 100644 --- a/src/it/translate/uugear-witty-pi.md +++ b/src/it/translate/uugear-witty-pi.md @@ -12,7 +12,17 @@ buy: http://www.uugear.com/product/witty-pi-realtime-clock-and-power-management- image: 'uugear-witty-pi.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/it/translate/uugear-zero4u.md b/src/it/translate/uugear-zero4u.md index 58bfa60..e5c945c 100644 --- a/src/it/translate/uugear-zero4u.md +++ b/src/it/translate/uugear-zero4u.md @@ -9,9 +9,8 @@ description: 4-port USB hub for Raspberry Pi Zero url: http://www.uugear.com/product/zero4u/ buy: http://www.uugear.com/product/zero4u/ image: 'uugear-zero4u.png' -pincount: 40 +pincount: 4 eeprom: no -power: 5v --> #Zero4U diff --git a/src/it/translate/wifi-pants.md b/src/it/translate/wifi-pants.md index e43dff6..4b242a8 100644 --- a/src/it/translate/wifi-pants.md +++ b/src/it/translate/wifi-pants.md @@ -12,7 +12,17 @@ buy: https://www.tindie.com/products/ajlitt/wifi-power-pants/ image: 'wifi-pants.png' pincount: 40 eeprom: no -power: external +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '13': name: ESP GPIO10 diff --git a/src/it/translate/zero-lipo.md b/src/it/translate/zero-lipo.md index ecbb96b..9b277c9 100644 --- a/src/it/translate/zero-lipo.md +++ b/src/it/translate/zero-lipo.md @@ -11,7 +11,10 @@ buy: https://shop.pimoroni.com/products/zero-lipo image: 'zero-lipo.png' pincount: 8 eeprom: no -power: external +power: + '2': +ground: + '6': pin: '7': name: Battery Low diff --git a/src/tr/translate/ab-1-wire-plus.md b/src/tr/translate/ab-1-wire-plus.md index 07768d0..3eb201e 100644 --- a/src/tr/translate/ab-1-wire-plus.md +++ b/src/tr/translate/ab-1-wire-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/60/1-Wire-Pi-Plus image: 'ab-1-wire-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #1 Wire Pi Plus -The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platforms. A 5V buffered I2C port is also provided on the board. +The 1 Wire Pi Plus from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi. A 5V buffered I2C port is also provided on the board. The 1-Wire® port on the 1 Wire Pi Plus is based around a DS2482-100 I2C to 1-Wire® bridge device. The DS2482-100 provides bi-directional protocol conversion between the I2C port on the Raspberry Pi and any attached 1-Wire® slave devices. An ESD Protection Diode is used to protect the 1 Wire Pi Plus and Raspberry Pi from electrostatic spikes on the 1-Wire® port. Connections to the 1-Wire® port can be made through the RJ-12 socket or the solder points on the PCB. -The Quick2wire lib from [https://github.com/quick2wire/quick2wire-python-api](https://github.com/quick2wire/quick2wire-python-api) allows easy access to the I2C port via Python. +I2C address select solder jumpers give you the ability to set the I2C address of the 1 Wire Pi Plus allowing the board to be used with other I2C devices on the same bus. [https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi](https://www.abelectronics.co.uk/kb/article/3/owfs-with-i2c-support-on-raspberry-pi "Configuring and using the 1-Wire® port on your Raspberry Pi") \ No newline at end of file diff --git a/src/tr/translate/ab-adc-differential-pi.md b/src/tr/translate/ab-adc-differential-pi.md index dca0b1e..21caa1f 100644 --- a/src/tr/translate/ab-adc-differential-pi.md +++ b/src/tr/translate/ab-adc-differential-pi.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/65/ADC-Differential-Pi-Raspberry-Pi-Analo image: 'ab-adc-differential-pi.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Differential Pi -The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Differential Pi is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Differential Pi is an 8 channel 18 bit analogue to digital converter des - 240 SPS (12 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub. \ No newline at end of file diff --git a/src/tr/translate/ab-adc-pi-plus.md b/src/tr/translate/ab-adc-pi-plus.md index 39d61f4..871390a 100644 --- a/src/tr/translate/ab-adc-pi-plus.md +++ b/src/tr/translate/ab-adc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/56/ADC-Pi-Plus-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #ADC Pi Plus -The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. +The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to work with the Raspberry Pi. The ADC Pi Plus is based on two Microchip MCP3424 A/D converters each containing 4 analogue inputs. The MCP3424 is a delta-sigma A/D converter with low noise differential inputs. ##Features @@ -48,4 +59,4 @@ The ADC Pi Plus is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/tr/translate/ab-adc-pi-zero.md b/src/tr/translate/ab-adc-pi-zero.md index f863fc0..d3bcfb2 100644 --- a/src/tr/translate/ab-adc-pi-zero.md +++ b/src/tr/translate/ab-adc-pi-zero.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/69/ADC-Pi-Zero-Raspberry-Pi-Analogue-to-D image: 'ab-adc-pi-zero.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '14': + '20': + '30': + '34': + '39': pin: '3': mode: i2c @@ -48,4 +57,4 @@ The ADC Pi Zero is an 8 channel 17 bit analogue to digital converter designed to - 240 SPS (11 bits) - One-Shot or Continuous Conversion Options -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/tr/translate/ab-io-pi-plus.md b/src/tr/translate/ab-io-pi-plus.md index 399712f..ec8504b 100644 --- a/src/tr/translate/ab-io-pi-plus.md +++ b/src/tr/translate/ab-io-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/54/IO-Pi-Plus image: 'ab-io-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -28,7 +39,7 @@ i2c: --> #IO Pi Plus -The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B computer platform. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. +The IO Pi Plus is a 32 channel digital expansion board designed for use on the Raspberry Pi. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc. A pair of MCP23017 expanders are included on the board allowing you to connect up to 32 digital inputs or outputs to the Raspberry Pi. The IO Pi Plus Expander is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the IO Pi Plus along with other expansion boards. @@ -45,4 +56,4 @@ A pair of MCP23017 expanders are included on the board allowing you to connect u - Configurable interrupt source - Interrupt-on-change from configured register defaults or pin changes - Polarity Inversion register to configure the polarity of the input port data -Arduino, C, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/tr/translate/ab-rtc-pi-plus.md b/src/tr/translate/ab-rtc-pi-plus.md index ed4c3ec..625357a 100644 --- a/src/tr/translate/ab-rtc-pi-plus.md +++ b/src/tr/translate/ab-rtc-pi-plus.md @@ -12,7 +12,18 @@ buy: https://www.abelectronics.co.uk/p/52/RTC-Pi-Plus image: 'ab-rtc-pi-plus.png' pincount: 40 eeprom: no -power: 3v3,5v +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -25,10 +36,10 @@ i2c: --> #RTC Pi Plus -The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 Model B. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. +The RTC Pi Plus is a battery backed real-time clock module for the Raspberry Pi. It keeps track of the time while the Raspberry Pi is switched off and allows the Raspberry Pi to retrieve the current date and time from the RTC Pi Plus when it is switched back on. The RTC Pi Plus is powered through the host Raspberry Pi using the GPIO port and extended pins on the GPIO connector allow you to stack the RTC Pi Plus along with other expansion boards. The RTC Pi Plus uses the DS1307 RTC real time clock and a CR2032 battery to maintain the date and time when the main system power is not available. Unlike most other DS1307 based RTC modules the RTC Pi also includes an I2C logic level converter allowing you to connect other 5V I2C devices to your Raspberry Pi. -Python 2 and 3 libraries are available on GitHub. \ No newline at end of file +Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub. \ No newline at end of file diff --git a/src/tr/translate/ab-serial-pi-plus.md b/src/tr/translate/ab-serial-pi-plus.md index 38dc2cd..c1a1aee 100644 --- a/src/tr/translate/ab-serial-pi-plus.md +++ b/src/tr/translate/ab-serial-pi-plus.md @@ -12,7 +12,16 @@ buy: https://www.abelectronics.co.uk/p/51/Serial-Pi-Plus image: 'ab-serial-pi-plus.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': mode: UART diff --git a/src/tr/translate/adafruit-cap-mpr121.md b/src/tr/translate/adafruit-cap-mpr121.md index e17890e..c1cf7b3 100644 --- a/src/tr/translate/adafruit-cap-mpr121.md +++ b/src/tr/translate/adafruit-cap-mpr121.md @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -34,8 +41,27 @@ install: - 'python-dev' - 'python3-dev' --> -#Capacitive Touch HAT +# Capacitive Touch HAT This Raspberry Pi add-on board provides 12 capacitive touch inputs and all the logic to read them over a simple I2C communication bus. -Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. \ No newline at end of file +Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors. + +## Code + +```python +from Adafruit_MPR121 import MPR121 +from time import sleep + +cap = MPR121.MPR121() + +last_touched = cap.touched() +while True: + current_touched = cap.touched() + for i in range(12): + pin_bit = 1 << i + if current_touched & pin_bit and not last_touched & pin_bit: + print("{} touched!".format(i)) + last_touched = current_touched + sleep(0.1) +``` diff --git a/src/tr/translate/adafruit-servo-hat.md b/src/tr/translate/adafruit-servo-hat.md index a35d644..0da7fee 100644 --- a/src/tr/translate/adafruit-servo-hat.md +++ b/src/tr/translate/adafruit-servo-hat.md @@ -2,7 +2,7 @@ --- name: Servo/PWM HAT class: board -type: touch +type: io,motor formfactor: HAT manufacturer: Adafruit description: A 16-Channel Servo / PWM HAT for Raspberry Pi @@ -16,6 +16,13 @@ power: '1': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/analog-zero.md b/src/tr/translate/analog-zero.md index c6af4f0..2d96a04 100644 --- a/src/tr/translate/analog-zero.md +++ b/src/tr/translate/analog-zero.md @@ -12,7 +12,17 @@ buy: http://rasp.io/analogzero/ image: 'analog-zero.png' pincount: 40 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '19': mode: spi @@ -28,7 +38,7 @@ install: --> #Analog Zero -The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analog channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. +The RasPiO Analog Zero offers a compact, inexpensive, easy way to add eight analogue channels to your Raspberry Pi. RasPiO Analog Zero uses an MCP3008 analog to digital converter. It's an SPI driven, 10-bit, 8-channel ADC. With RasPiO Analog Zero you can: @@ -38,4 +48,25 @@ With RasPiO Analog Zero you can: * make a voltmeter * use potentiometer dials for control and display * read analog sensors or voltages -* make your own embedded device with minimal footprint \ No newline at end of file +* make your own embedded device with minimal footprint + +## Code + +```python +from gpiozero import MCP3008 +from time import sleep + +left_pot = MCP3008(0) +light = MCP3008(1) +temperature = MCP3008(2) +right_pot = MCP3008(3) + +while True: + print("Left pot value is {}".format(left_pot.value)) + print("Light sensor value is {}".format(light.value)) + print("Temperature sensor value is {}".format(temperature.value)) + print("Right pot value is {}".format(right_pot.value)) + sleep(1) +``` + +[GPIO Zero docs: MCP3008](http://gpiozero.readthedocs.io/en/v1.3.1/api_spi.html#gpiozero.MCP3008) diff --git a/src/tr/translate/blinkt.md b/src/tr/translate/blinkt.md index 2f76692..ed826c6 100644 --- a/src/tr/translate/blinkt.md +++ b/src/tr/translate/blinkt.md @@ -12,7 +12,10 @@ buy: https://shop.pimoroni.com/products/blinkt image: 'blinkt.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': pin: '16': name: Data @@ -23,6 +26,23 @@ pin: mode: output active: high --> -#Blinkt! +# Blinkt! -Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. \ No newline at end of file +Blinkt! is a super slimline Raspberry Pi Add-on board with 8 APA-102 LEDs. + +## Code + +```python +from blinkt import set_pixel, show +from random import randint +from time import sleep + +while True: + for pixel in range(8): + r = randint(255) + g = randint(255) + b = randint(255) + set_pixel(pixel, r, g, b) + show() + sleep(0.1) +``` diff --git a/src/tr/translate/carberry.md b/src/tr/translate/carberry.md index 8f6ca5a..eddfd57 100644 --- a/src/tr/translate/carberry.md +++ b/src/tr/translate/carberry.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/tr/translate/cirruslogic-audio-card.md b/src/tr/translate/cirruslogic-audio-card.md index 434f7b2..5a3498e 100644 --- a/src/tr/translate/cirruslogic-audio-card.md +++ b/src/tr/translate/cirruslogic-audio-card.md @@ -10,6 +10,18 @@ url: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-acce buy: http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/cirrus_logic_audio_card image: 'cirruslogic-audio-card.png' pincount: 40 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA1 diff --git a/src/tr/translate/discohat.md b/src/tr/translate/discohat.md index d61a328..374b52b 100644 --- a/src/tr/translate/discohat.md +++ b/src/tr/translate/discohat.md @@ -11,6 +11,18 @@ buy: http://discohat.com/shop image: 'discohat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD diff --git a/src/tr/translate/display-o-tron-hat.md b/src/tr/translate/display-o-tron-hat.md index 62c0c5e..e0c65a4 100644 --- a/src/tr/translate/display-o-tron-hat.md +++ b/src/tr/translate/display-o-tron-hat.md @@ -17,6 +17,8 @@ power: '2': ground: '6': + '9': + '39': pin: '3': mode: i2c @@ -38,6 +40,13 @@ pin: name: LCD Reset mode: output active: low +i2c: + '0x54': + name: Backlight + device: sn3218 + '0x2c': + name: Cap Touch + device: cap1166 --> #Display-o-Tron HAT diff --git a/src/tr/translate/drum-hat.md b/src/tr/translate/drum-hat.md index e1ef6a0..ce36571 100644 --- a/src/tr/translate/drum-hat.md +++ b/src/tr/translate/drum-hat.md @@ -2,7 +2,7 @@ --- name: Drum HAT class: board -type: instrument +type: instrument,touch formfactor: HAT manufacturer: Pimoroni description: An 8 pad finger Drum HAT for your Raspberry Pi @@ -12,6 +12,13 @@ buy: http://shop.pimoroni.com/products/drum-hat image: 'drum-hat.png' pincount: 40 eeprom: yes +power: + '2': + '17': +ground: + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/enviro-phat.md b/src/tr/translate/enviro-phat.md index b253a52..5287339 100644 --- a/src/tr/translate/enviro-phat.md +++ b/src/tr/translate/enviro-phat.md @@ -2,7 +2,7 @@ --- name: Enviro pHAT class: board -type: iot,sensor +type: adc,sensor formfactor: pHAT manufacturer: Pimoroni description: A package of environmental sensors for IoT projects @@ -12,7 +12,17 @@ buy: https://shop.pimoroni.com/products/enviro-phat image: 'enviro-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -20,20 +30,20 @@ pin: mode: i2c '7': mode: output - name: Lights + name: LEDs i2c: - '0x29': - name: Light/Colour Sensor - device: TCS3472 '0x1d': name: Motion Sensor device: LSM303D + '0x29': + name: Light/Colour Sensor + device: TCS3472 + '0x49': + name: 4-Channel Analog Input + device: ADS1015 '0x77': name: Temp/Pressure Sensor device: BMP280 - '0x48': - name: 4-Channel Analog Input - device: ADS1015 --> #Enviro pHAT @@ -41,11 +51,12 @@ Coupled with a Pi Zero, Enviro pHAT is an affordable mix of sensors, ideal for m Features: -BMP280 temperature/pressure sensor (0x77 on the i2c bus) -TCS3472 light and RGB colour sensor (0x29 on the i2c bus) -(with two LEDs for illumination) -LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) -ADS1015 4-channel 3.3v 12-bit ADC (0x48 on the i2c bus) +* BMP280 temperature/pressure sensor (0x77 on the i2c bus) +* TCS3472 light and RGB colour sensor (0x29 on the i2c bus) +(with two GPIO controlled LEDs for illumination) +* LSM303D accelerometer/magnetometer sensor (0x1d on the i2c bus) +* ADS1015 4-channel 5v tolerant 12-bit ADC (0x49 on the i2c bus) +(3.3v 12-bit ADC at address 0x48 in first production run of the board) To get the pHAT set up and ready to go you can use the one-line product installer: diff --git a/src/tr/translate/espiot-phat.md b/src/tr/translate/espiot-phat.md index 0b4c15f..534551b 100644 --- a/src/tr/translate/espiot-phat.md +++ b/src/tr/translate/espiot-phat.md @@ -15,6 +15,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/tr/translate/explorer-phat.md b/src/tr/translate/explorer-phat.md index a2c374d..e2b3643 100644 --- a/src/tr/translate/explorer-phat.md +++ b/src/tr/translate/explorer-phat.md @@ -12,6 +12,18 @@ buy: https://shop.pimoroni.com/products/explorer-phat image: 'explorer-phat.png' pincount: 40 eeprom: no +power: + '2': + '17': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/iface-1wire.md b/src/tr/translate/iface-1wire.md index 938f208..c3c7644 100644 --- a/src/tr/translate/iface-1wire.md +++ b/src/tr/translate/iface-1wire.md @@ -11,7 +11,7 @@ pin: --> # W1-GPIO - One-Wire Interface -To enable the one-wire interface you need to add the following line to /boot/config.txt, beofre rebooting your Pi: +To enable the one-wire interface you need to add the following line to /boot/config.txt, before rebooting your Pi: ``` dtoverlay=w1-gpio diff --git a/src/tr/translate/iqaudio-pi-dac.md b/src/tr/translate/iqaudio-pi-dac.md index 8b297fb..cc9973e 100644 --- a/src/tr/translate/iqaudio-pi-dac.md +++ b/src/tr/translate/iqaudio-pi-dac.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-dac.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/iqaudio-pi-digiamp.md b/src/tr/translate/iqaudio-pi-digiamp.md index 8ffda41..14b75f3 100644 --- a/src/tr/translate/iqaudio-pi-digiamp.md +++ b/src/tr/translate/iqaudio-pi-digiamp.md @@ -11,6 +11,18 @@ buy: http://www.iqaudio.co.uk image: 'iqaudio-pi-digiamp.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c @@ -39,10 +51,9 @@ install: 'devices': - 'i2c' --> - #Pi-DigiAMP+ The Pi-DigiAMP+ is an add-on board that includes a Digital to Analog Converter (DAC) and powerful 35w stereo amplifier. If you want to turn your Raspberry Pi into a working Hi Fi stereo, just add speakers and you're off. You can use GPIO25 to connect an IR sensor and GPIO23/24 for a rotary encoder. Both of these parts are optional, but are broken out on the Pi-DAC+ for convenient access. -Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. \ No newline at end of file +Note: pins reserved for the rotary encoder and IR sensor can be used for other purposes if those add-ons have not been fitted and enabled by software. diff --git a/src/tr/translate/microdot-phat.md b/src/tr/translate/microdot-phat.md index 53a191e..b2f5d83 100644 --- a/src/tr/translate/microdot-phat.md +++ b/src/tr/translate/microdot-phat.md @@ -12,7 +12,11 @@ buy: https://shop.pimoroni.com/products/microdot-phat image: 'microdot-phat.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/phat-dac.md b/src/tr/translate/phat-dac.md index 8fd5d9c..3063da0 100644 --- a/src/tr/translate/phat-dac.md +++ b/src/tr/translate/phat-dac.md @@ -11,10 +11,16 @@ image: 'phat-dac.png' pincount: 40 eeprom: no power: - '1': '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: I2S diff --git a/src/tr/translate/pi-liter.md b/src/tr/translate/pi-liter.md index 579f4f9..9bfb9f7 100644 --- a/src/tr/translate/pi-liter.md +++ b/src/tr/translate/pi-liter.md @@ -6,12 +6,19 @@ type: led formfactor: Custom manufacturer: Ciseco description: An 8 LED strip for the Raspberry Pi -url: http://www.averagemanvsraspberrypi.com/2014/04/how-to-use-pi-liter-from-ciseco.html +url: http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter buy: http://cpc.farnell.com/wirelessthings/pi-liter/pi-lite-junior-led-io-board-for/dp/SC13293 image: 'pi-liter.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '7': name: LED1 @@ -56,4 +63,23 @@ Applications: * Bar graph * Light chaser * Activity indicator -* Lighting effects \ No newline at end of file +* Lighting effects + +## Code + +```python +from gpiozero import PiLiter +from time import sleep + +lite = PiLiter() + +for led in lite: + led.on() + sleep(0.1) + led.off() + +lite.on() +sleep(5) +``` + +[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#piliter) diff --git a/src/tr/translate/piano-hat.md b/src/tr/translate/piano-hat.md index bcde914..9679770 100644 --- a/src/tr/translate/piano-hat.md +++ b/src/tr/translate/piano-hat.md @@ -2,7 +2,7 @@ --- name: Piano HAT class: board -type: instrument +type: instrument,touch formfactor: HAT manufacturer: Pimoroni description: A tiny Pi piano with 16 touch-sensitive buttons @@ -12,6 +12,13 @@ buy: https://shop.pimoroni.com/products/piano-hat image: 'piano-hat.png' pincount: 40 eeprom: yes +power: + '2': + '17': +ground: + '9': + '30': + '34': pin: '3': mode: i2c @@ -37,7 +44,7 @@ i2c: name: Cap Touch B device: cap1188 --> -#Pimoroni Piano HAT +#Piano HAT Piano HAT has 16 touch-sensitive buttons. 13 of these are a single Piano octave, the rest give you octave up/down and instrument select functionality. diff --git a/src/tr/translate/propeller-hat.md b/src/tr/translate/propeller-hat.md index 86d154b..ebeefd6 100644 --- a/src/tr/translate/propeller-hat.md +++ b/src/tr/translate/propeller-hat.md @@ -15,7 +15,13 @@ eeprom: yes power: '2': ground: - '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '8': name: TXD / Transmit diff --git a/src/tr/translate/raspio-duino.md b/src/tr/translate/raspio-duino.md index e38362a..9b175ee 100644 --- a/src/tr/translate/raspio-duino.md +++ b/src/tr/translate/raspio-duino.md @@ -12,7 +12,14 @@ buy: https://ryanteck.uk/add-ons/58-raspio-duino.html image: 'raspio-duino.png' pincount: 26 eeprom: no -power: 3v3 +power: + '1': +ground: + '6': + '9': + '14': + '20': + '25': pin: '8': mode: uart diff --git a/src/tr/translate/redbear-iot-hat.md b/src/tr/translate/redbear-iot-hat.md index 5e42b89..fb07d91 100644 --- a/src/tr/translate/redbear-iot-hat.md +++ b/src/tr/translate/redbear-iot-hat.md @@ -1,6 +1,6 @@ -#PiZero IoT HAT +#IoT pHAT -The RedBear IoT HAT brings the BCM43438 used on the Raspberry Pi 3 to HAT format, compatible with the Pi Zero. +The RedBear IoT pHAT brings the BCM43438 used on the Raspberry Pi 3 to pHAT format, compatible with the Pi Zero. The chip supports Wi-Fi 802.11n and Bluetooth 4.1 (Dual Mode). diff --git a/src/tr/translate/scroll-phat.md b/src/tr/translate/scroll-phat.md index 15505da..4fc363e 100644 --- a/src/tr/translate/scroll-phat.md +++ b/src/tr/translate/scroll-phat.md @@ -16,6 +16,13 @@ power: '2': ground: '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/sense-hat.md b/src/tr/translate/sense-hat.md index e121e83..11ad544 100644 --- a/src/tr/translate/sense-hat.md +++ b/src/tr/translate/sense-hat.md @@ -10,6 +10,18 @@ url: https://www.raspberrypi.org/products/sense-hat/ image: 'sense-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': mode: i2c diff --git a/src/tr/translate/traffic-hat.md b/src/tr/translate/traffic-hat.md index ee07ff3..da79436 100644 --- a/src/tr/translate/traffic-hat.md +++ b/src/tr/translate/traffic-hat.md @@ -11,6 +11,18 @@ buy: http://www.ryanteck.uk/store/traffichat image: 'traffic-hat.png' pincount: 40 eeprom: yes +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '15': name: LED1 / Green @@ -38,19 +50,26 @@ pin: ###A quick and easy way to learn the basics of GPIO on a budget. All in a nice HAT. ```python -import RPi.GPIO as IO +from gpiozero import TrafficHat from time import sleep +from signal import pause -IO.setmode(IO.BCM) +hat = TrafficHat() -#Lights -IO.setup(22,IO.OUT) -IO.setup(23,IO.OUT) -IO.setup(24,IO.OUT) +# control components individually +hat.lights.green.on() +sleep(1) +hat.lights.amber.on() +sleep(1) +hat.lights.red.on() +sleep(1) +hat.buzzer.on() +sleep(1) +hat.off() # turn everything off -#Buzzer -IO.setup(5,IO.OUT) +# set up events on button press/release +hat.button.when_pressed = hat.lights.blink +hat.button.when_released = hat.lights.off -#Button -IO.setup(25,IO.IN,pull_up_down=IO.PUD_UP) +pause() ``` diff --git a/src/tr/translate/unicorn-phat.md b/src/tr/translate/unicorn-phat.md index ae1fd5f..8b147d5 100644 --- a/src/tr/translate/unicorn-phat.md +++ b/src/tr/translate/unicorn-phat.md @@ -15,7 +15,14 @@ eeprom: yes power: '2': ground: + '6': '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '12': name: Data @@ -36,7 +43,7 @@ install: 32 blindingly bright LEDs packed into a pHAT and driven with an ultra-fast, C library that you can talk to from Python make Unicorn HAT PiGlow's bigger, brighter brother. -Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets you Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! +Note: Unicorn pHAT uses some special PWM trickery, performed with the same hardware that lets your Pi produce sound through the audio jack ( analog audio ) so you can't use both at the same time! To get the HAT set up and ready to go you can use the one-line product installer: diff --git a/src/tr/translate/uugear-7port-usb-hub.md b/src/tr/translate/uugear-7port-usb-hub.md index 227943a..b52a4a7 100644 --- a/src/tr/translate/uugear-7port-usb-hub.md +++ b/src/tr/translate/uugear-7port-usb-hub.md @@ -9,9 +9,12 @@ description: 7-port USB hub for Raspberry Pi url: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ buy: http://www.uugear.com/product/7-port-usb-hub-for-raspberry-pi/ image: 'uugear-7port-usb-hub.png' -pincount: 40 +pincount: 7 eeprom: no -power: 5v +power: + '2': +ground: + '39': --> #7-port USB hub for Raspberry Pi diff --git a/src/tr/translate/uugear-witty-pi-2.md b/src/tr/translate/uugear-witty-pi-2.md index 8f6d498..d7339b4 100644 --- a/src/tr/translate/uugear-witty-pi-2.md +++ b/src/tr/translate/uugear-witty-pi-2.md @@ -12,7 +12,18 @@ buy: http://www.uugear.com/product/wittypi2/ image: 'uugear-witty-pi-2.png' pincount: 40 eeprom: no -power: 5v,3v3 +power: + '1': + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/tr/translate/uugear-witty-pi.md b/src/tr/translate/uugear-witty-pi.md index 47ed0ae..7923089 100644 --- a/src/tr/translate/uugear-witty-pi.md +++ b/src/tr/translate/uugear-witty-pi.md @@ -12,7 +12,17 @@ buy: http://www.uugear.com/product/witty-pi-realtime-clock-and-power-management- image: 'uugear-witty-pi.png' pincount: 40 eeprom: no -power: 5v +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '3': name: SDA diff --git a/src/tr/translate/uugear-zero4u.md b/src/tr/translate/uugear-zero4u.md index 58bfa60..e5c945c 100644 --- a/src/tr/translate/uugear-zero4u.md +++ b/src/tr/translate/uugear-zero4u.md @@ -9,9 +9,8 @@ description: 4-port USB hub for Raspberry Pi Zero url: http://www.uugear.com/product/zero4u/ buy: http://www.uugear.com/product/zero4u/ image: 'uugear-zero4u.png' -pincount: 40 +pincount: 4 eeprom: no -power: 5v --> #Zero4U diff --git a/src/tr/translate/wifi-pants.md b/src/tr/translate/wifi-pants.md index e43dff6..4b242a8 100644 --- a/src/tr/translate/wifi-pants.md +++ b/src/tr/translate/wifi-pants.md @@ -12,7 +12,17 @@ buy: https://www.tindie.com/products/ajlitt/wifi-power-pants/ image: 'wifi-pants.png' pincount: 40 eeprom: no -power: external +power: + '2': +ground: + '6': + '9': + '14': + '20': + '25': + '30': + '34': + '39': pin: '13': name: ESP GPIO10 diff --git a/src/tr/translate/zero-lipo.md b/src/tr/translate/zero-lipo.md index ecbb96b..9b277c9 100644 --- a/src/tr/translate/zero-lipo.md +++ b/src/tr/translate/zero-lipo.md @@ -11,7 +11,10 @@ buy: https://shop.pimoroni.com/products/zero-lipo image: 'zero-lipo.png' pincount: 8 eeprom: no -power: external +power: + '2': +ground: + '6': pin: '7': name: Battery Low