Conflicts fixed
This commit is contained in:
commit
bbd15880be
36
README.md
36
README.md
@ -2,7 +2,7 @@
|
||||
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
|
||||
|
||||
Pinout.xyz is the successor to the popular Pi pinout website originally hosted on http://pi.gadgetoid.com/pinout
|
||||
[Pinout.xyz](http://pinout.xyz/) is the successor to the popular Pi pinout website originally hosted on http://pi.gadgetoid.com/pinout
|
||||
|
||||
To support translation efforts, and allow people to build tools with the data in this repository, Pinout.xyz is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
|
||||
|
||||
@ -12,11 +12,11 @@ This license excludes the file pinout-graphic-horizontal.ai, which is provided u
|
||||
|
||||
This project aims to build a consistent workflow behind the Pinout.xyz front-end, gather useful information about the Raspberry Pi GPIO interface and add-on boards, and invite board manufacturers to produce their own "overlay" files which describe which pins their Pi add-ons use.
|
||||
|
||||
We hope that by making this project open and extensible I will invite not only contributions of board pinouts, but translations too.
|
||||
We hope that by making this project open and extensible we will invite not only contributions of board pinouts, but translations too.
|
||||
|
||||
#Contributing
|
||||
|
||||
If you have a board you'd like to contribute, raise an issue and we'll consider it!
|
||||
If you have a board you'd like to contribute, raise an [issue](https://github.com/Gadgetoid/Pinout.xyz/issues) and we'll consider it!
|
||||
|
||||
If you've spotted an error, ommission or have a suggestion then you're welcome to do the same.
|
||||
|
||||
@ -24,16 +24,20 @@ If you've spotted an error, ommission or have a suggestion then you're welcome t
|
||||
|
||||
The contents of this GitHub repository are used to build http://pinout.xyz and its translated subdomains.
|
||||
|
||||
Current known contributors are:
|
||||
Maintainers: [@Gadgetoid](https://github.com/Gadgetoid) and [@RogueM](https://github.com/RogueM)
|
||||
|
||||
* de - @rdmueller and @KojoePi
|
||||
* es - @ResonantWave
|
||||
* fr - @RogueM
|
||||
* it - @LizardM4
|
||||
* pt - @Maslor
|
||||
* tr - @Ardakilic
|
||||
GPIO Zero code examples by: [@bennuttall](https://github.com/bennuttall)
|
||||
|
||||
If you would like to provide support for a language not yet in the repository you should start by duplicating the `src/en` directory to the appropriate culture. For example if you want to create a German translation you would create the folder `src/de`.
|
||||
Notable contributions:
|
||||
|
||||
* [en](http://pinout.xyz/) - [@lurch](https://github.com/lurch) and [@abelectronicsuk](https://github.com/abelectronicsuk)
|
||||
* [de](http://de.pinout.xyz/) - [@rdmueller](https://github.com/rdmueller) and [@KojoePi](https://github.com/KojoePi)
|
||||
* [es](http://es.pinout.xyz/) - [@ResonantWave](https://github.com/ResonantWave) and [@IkerGarcia](https://github.com/IkerGarcia)
|
||||
* [fr](http://fr.pinout.xyz/) - [@RogueM](https://github.com/RogueM) and [@smileyn64](https://github.com/smileyn64)
|
||||
* [it](http://it.pinout.xyz/) - [@LizardM4](https://github.com/LizardM4)
|
||||
* [tr](http://tr.pinout.xyz/) - [@Ardakilic](https://github.com/Ardakilic)
|
||||
|
||||
If you would like to provide support for a language not yet in the repository you should start by duplicating the `src/en` directory to the appropriate language-code. For example, if you want to create a German translation you would create the folder `src/de`.
|
||||
|
||||
There are no plans to support cultures (it would just get out of hand!), so you can't have `src/fr-CA` ( sorry! ).
|
||||
|
||||
@ -45,15 +49,17 @@ make serve LANG=de
|
||||
|
||||
And then open: http://127.0.0.1:5000 in your browser.
|
||||
|
||||
*note: if you are facing issues on your preview (card not showing, text update not appearing ...), you can fix it by erasing you browser cache (image and cache file only)*
|
||||
|
||||
Please do not attempt to translate the `/resources` folder, this is shared between sites on the server and should be generic.
|
||||
|
||||
Feel free to modify the template with links relevent to your country, and your Twitter handle but don't fiddle with the structure!
|
||||
Feel free to modify the template with links relevant to your country, and / or your Twitter handle, but don't fiddle with the structure!
|
||||
|
||||
Submit your finished translation as a pull request and we'll get it live on its own pinout.xyz subdomain :)
|
||||
Submit your finished translation as a [pull request](https://github.com/Gadgetoid/Pinout.xyz/pulls) and we'll get it live on its own *<languagecode>*.pinout.xyz subdomain :)
|
||||
|
||||
#Roadmap & wishlist
|
||||
#Roadmap & wishlist
|
||||
|
||||
* Redesign HTML generation and unify HTML templates into a single, translatable file
|
||||
* Add functionality to compare two or more boards, to visualise pin compatibility
|
||||
* Tool to convert WiringPi to GPIO to BCM and back
|
||||
* Add as many boards as possible!
|
||||
* Add as many [boards](http://pinout.xyz/boards) as possible!
|
||||
|
@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
draftpng="../draft/boards"
|
||||
dirpng="../resources/boards"
|
||||
draftmd="../draft/overlay"
|
||||
mdlist=$(ls "$draftmd")
|
||||
srcdir="../src"
|
||||
langlist=$(ls "$srcdir")
|
||||
yamlfile="../src/en/settings.yaml"
|
||||
|
||||
for overlay in $mdlist; do
|
||||
if [ $overlay != "template.md" ]; then
|
||||
board=$(echo "$overlay" | rev | cut -c 4- | rev)
|
||||
for dirmd in ${langlist[@]}; do
|
||||
if [ $dirmd != "en" ]; then
|
||||
if ! [ -f $srcdir/$dirmd/overlay/$overlay ]; then
|
||||
cp $draftmd/$overlay $srcdir/$dirmd/translate/
|
||||
fi
|
||||
else
|
||||
cp $draftmd/$overlay $srcdir/$dirmd/overlay/
|
||||
fi
|
||||
done
|
||||
rm $draftmd/$overlay
|
||||
if [ -f $draftpng/$board.png ];then
|
||||
mv $draftpng/$board.png $dirpng
|
||||
fi
|
||||
if ! grep -e $board $yamlfile &> /dev/null; then
|
||||
echo "- $board" | tee -a $yamlfile &> /dev/null
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
32
draft/overlay/4tronix-motor-shim.md
Normal file
32
draft/overlay/4tronix-motor-shim.md
Normal file
@ -0,0 +1,32 @@
|
||||
<!--
|
||||
---
|
||||
name: Pi Zero Motor Shim
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: Custom
|
||||
manufacturer: 4tronix
|
||||
description: LiPMotor driver shim for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=543
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=543
|
||||
image: 'pzm-shim.png'
|
||||
pincount: 6
|
||||
eeprom: no
|
||||
ground:
|
||||
'39':
|
||||
pin:
|
||||
'35':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'36':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'37':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'38':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
-->
|
||||
#Pi Zero Motor Shim
|
||||
|
||||
The PZM shim gives you the simplest possible motor driver that can be fitted directly to the header of a Pi Zero (or other 40-pin model of Pi). Headers are included to use if required so that it is a plug-in device rather than soldered directly if preferred.
|
34
draft/overlay/4tronix-pistop.md
Normal file
34
draft/overlay/4tronix-pistop.md
Normal file
@ -0,0 +1,34 @@
|
||||
<!--
|
||||
---
|
||||
name: Pi Stop
|
||||
class: board
|
||||
type: led
|
||||
formfactor: Custom
|
||||
manufacturer: 4tronix
|
||||
description: LED Traffic Lights for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=390
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=390
|
||||
image: '4tronix-pistop.png'
|
||||
pincount: 4
|
||||
eeprom: no
|
||||
ground:
|
||||
'9':
|
||||
pin:
|
||||
'11':
|
||||
name: Green
|
||||
mode: output
|
||||
active: high
|
||||
'13':
|
||||
name: Amber
|
||||
mode: output
|
||||
active: high
|
||||
'15':
|
||||
name: Red
|
||||
mode: output
|
||||
active: high
|
||||
-->
|
||||
#Pi Stop Traffic Lights
|
||||
|
||||
The PiStop is placed vertically into the GPIO connectors and can be fitted into several positions in the board. It can be fitted into 26-pin headers as well as 40-pin headers.
|
||||
|
||||
PiStop only uses 3 GPIO pins plus ground, but you can fit multiple PiStops into one header, although not all positions are possible simultaneously as some pins are shared across the options. Note that only one position is illustrated in the pinout, but any succession of 3 GPIO next to a ground pin is suitable.
|
80
draft/overlay/4tronix-robohat.md
Normal file
80
draft/overlay/4tronix-robohat.md
Normal file
@ -0,0 +1,80 @@
|
||||
<!--
|
||||
---
|
||||
name: 4tronix RoboHat
|
||||
class: board
|
||||
type: io,motor
|
||||
formfactor: HAT
|
||||
manufacturer: 4tronix
|
||||
description: Robotics controller HAT
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=547
|
||||
github:
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=547
|
||||
image: '4tronix-robohat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
'4':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'32':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'33':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
'35':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'36':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'18':
|
||||
name: out0
|
||||
mode: output
|
||||
active: high
|
||||
'22':
|
||||
name: out1
|
||||
mode: output
|
||||
active: high
|
||||
'12':
|
||||
name: out2
|
||||
mode: output
|
||||
active: high
|
||||
'31':
|
||||
name: out3
|
||||
mode: output
|
||||
active: high
|
||||
'7':
|
||||
name: in0
|
||||
mode: input
|
||||
'11':
|
||||
name: in1
|
||||
mode: input
|
||||
'29':
|
||||
name: in2
|
||||
mode: input
|
||||
'13':
|
||||
name: in3
|
||||
mode: input
|
||||
'15':
|
||||
name: in4
|
||||
mode: input
|
||||
'16':
|
||||
name: in5
|
||||
mode: input
|
||||
'38':
|
||||
name: Ultrasonic
|
||||
mode: input/output
|
||||
-->
|
||||
#RoboHat
|
||||
The RoboHat is a complete robot controller for small robots. It has 2 full H-bridges using DRV8833 for up to 1.5A per channel, a 5V switch-mode regulator to generate the 5V for the Raspberry Pi, 6 bufferened inputs that can accept 2.5V to 5.5V and convert to 3.3V and 4 outputs driven up to 5V. All the I/O is via GVS (Ground, Volts, Signal) 3-pin terminals so it is easy to plug in 3-pin sensors or small servos directly. There is also a connector plug in an HC-SR04 ultrasonic distance sensor with the necessary circuitry to read the value using a single GPIO pin.
|
78
draft/overlay/picade-hat.md
Normal file
78
draft/overlay/picade-hat.md
Normal file
@ -0,0 +1,78 @@
|
||||
<!--
|
||||
---
|
||||
name: Picade HAT
|
||||
class: board
|
||||
type: input
|
||||
formfactor: HAT
|
||||
manufacturer: Pimoroni
|
||||
description: Arcade control inputs plus mono I2S digital audio
|
||||
buy: https://shop.pimoroni.com/
|
||||
image: 'picade-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
'4':
|
||||
'17':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'12':
|
||||
name: I2S
|
||||
'35':
|
||||
name: I2S
|
||||
'40':
|
||||
name: I2S
|
||||
'7':
|
||||
name: Shutdown
|
||||
'11':
|
||||
name: Power
|
||||
'13':
|
||||
name: Enter
|
||||
'15':
|
||||
name: Escape
|
||||
'16':
|
||||
name: Coin
|
||||
'18':
|
||||
name: Start
|
||||
'29':
|
||||
name: 'Button 1'
|
||||
'23':
|
||||
name: 'Button 2'
|
||||
'24':
|
||||
name: 'Button 3'
|
||||
'22':
|
||||
name: 'Button 4'
|
||||
'21':
|
||||
name: 'Button 5'
|
||||
'19':
|
||||
name: 'Button 6'
|
||||
'32':
|
||||
name: Up
|
||||
'31':
|
||||
name: Down
|
||||
'38':
|
||||
name: Left
|
||||
'36':
|
||||
name: Right
|
||||
install:
|
||||
'devices':
|
||||
- 'i2s'
|
||||
-->
|
||||
#Picade HAT
|
||||
|
||||
Picade HAT provides screw terminals for 10 arcade buttons and a joystick. It also includes a digital to analog audio converter and amplifier which outputs to a single speaker terminal.
|
||||
|
||||
All button inputs should be configured with their corresponding internal pull-ups. Buttons should be wired between an input and ground.
|
||||
|
||||
* 14 button terminals
|
||||
* Stereo audio combined for a single speaker
|
||||
* Support for an external power button and safe power shutdown
|
@ -1,39 +0,0 @@
|
||||
<!--
|
||||
---
|
||||
name: Picon Zero
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
image: 'picon-zero.png'
|
||||
manufacturer: 4tronix
|
||||
description: An add-on board for the Raspberry Pi
|
||||
url: https://my-addon-board.com
|
||||
github: https://github.com/my-addon-board-repo.com
|
||||
buy: http://buy-my-addon-board.com
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
i2c:
|
||||
'0x00':
|
||||
name: device display name
|
||||
device: chip name
|
||||
-->
|
||||
#Picon Zero
|
||||
|
||||
TBA
|
50
draft/publish.sh
Executable file
50
draft/publish.sh
Executable file
@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
|
||||
draftpng="../draft/boards"
|
||||
dirpng="../resources/boards"
|
||||
draftmd="../draft/overlay"
|
||||
mdlist=$(ls "$draftmd")
|
||||
srcdir="../src"
|
||||
langlist=$(ls "$srcdir")
|
||||
yamlfile="settings.yaml"
|
||||
|
||||
FORCE=$1
|
||||
|
||||
confirm() {
|
||||
if [ "$FORCE" == '-y' ]; then
|
||||
true
|
||||
else
|
||||
read -r -p "$1 [y/N] " response < /dev/tty
|
||||
if [[ $response =~ ^(yes|y|Y)$ ]]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
for overlay in $mdlist; do
|
||||
if [ $overlay != "template.md" ]; then
|
||||
board=$(echo "$overlay" | rev | cut -c 4- | rev)
|
||||
if confirm "Would you like to publish $board?"; then
|
||||
for dirmd in ${langlist[@]}; do
|
||||
if [ $dirmd != "en" ]; then
|
||||
if ! [ -f $srcdir/$dirmd/overlay/$overlay ]; then
|
||||
cp $draftmd/$overlay $srcdir/$dirmd/translate/
|
||||
fi
|
||||
else
|
||||
cp $draftmd/$overlay $srcdir/$dirmd/overlay/
|
||||
fi
|
||||
if ! grep -e $board ../src/$dirmd/$yamlfile &> /dev/null; then
|
||||
echo "- $board" | tee -a ../src/$dirmd/$yamlfile &> /dev/null
|
||||
fi
|
||||
done
|
||||
rm $draftmd/$overlay
|
||||
if [ -f $draftpng/$board.png ];then
|
||||
mv $draftpng/$board.png $dirpng
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
@ -4,9 +4,11 @@ masterdir="../src/en/overlay"
|
||||
mdlist=$(ls "$masterdir")
|
||||
srcdir="../src"
|
||||
langlist=$(ls "$srcdir")
|
||||
yamlfile="settings.yaml"
|
||||
filesync=false
|
||||
|
||||
for overlay in $mdlist; do
|
||||
board=$(echo "$overlay" | rev | cut -c 4- | rev)
|
||||
for dirmd in ${langlist[@]}; do
|
||||
if [ -f $srcdir/$dirmd/translate/$overlay ]; then
|
||||
if [ -n "$(diff "$masterdir/$overlay" "$srcdir/$dirmd/translate/$overlay" 2> /dev/null)" ]; then
|
||||
@ -14,6 +16,14 @@ for overlay in $mdlist; do
|
||||
cp $masterdir/$overlay $srcdir/$dirmd/translate/
|
||||
filesync=true
|
||||
fi
|
||||
elif ! [ -f $srcdir/$dirmd/overlay/$overlay ]; then
|
||||
echo "copying $overlay to $dirmd/translate/"
|
||||
cp $masterdir/$overlay $srcdir/$dirmd/translate/
|
||||
filesync=true
|
||||
fi
|
||||
if ! grep -e $board ../src/$dirmd/$yamlfile &> /dev/null; then
|
||||
echo "adding $board to $dirmd/$yamlfile"
|
||||
echo "- $board" | tee -a ../src/$dirmd/$yamlfile &> /dev/null
|
||||
fi
|
||||
done
|
||||
done
|
111
generate-html.py
111
generate-html.py
@ -23,7 +23,10 @@ GROUND_PINS = [6,9,14,20,25,30,34,39]
|
||||
lang = "en"
|
||||
default_strings = {
|
||||
'pin_header': '{} pin header',
|
||||
'wiring_pi_pin': 'Wiring Pi pin {}',
|
||||
'form_undefined': 'Undefined',
|
||||
'group_other': 'other',
|
||||
'eeprom_detect': 'Uses VID/PID',
|
||||
'eeprom_setup': 'Uses EEPROM',
|
||||
'uses_5v_and_3v3': 'Needs 5v and 3v3 power',
|
||||
'uses_5v': 'Needs 5v power',
|
||||
'uses_3v3': 'Needs 3v3 power',
|
||||
@ -32,23 +35,11 @@ default_strings = {
|
||||
'uses_n_gpio_pins': 'Uses {} GPIO pins',
|
||||
'bcm_pin_rev1_pi': 'BCM pin {} on Rev 1 ( very early ) Pi',
|
||||
'physical_pin_n': 'Physical pin {}',
|
||||
'wiring_pi_pin': 'Wiring Pi pin {}',
|
||||
'more_information': 'More Information',
|
||||
'github_repository': 'GitHub Repository',
|
||||
'buy_now': 'Buy Now',
|
||||
'group_multi': 'Multi',
|
||||
'group_led': 'LED',
|
||||
'group_iot': 'IOT',
|
||||
'group_instrument': 'Instrument',
|
||||
'group_lcd': 'LCD',
|
||||
'group_other': 'Other',
|
||||
'group_motor': 'Motor',
|
||||
'group_adc': 'ADC',
|
||||
'group_audio': 'Audio',
|
||||
'group_gesture': 'Gesture',
|
||||
'group_touch': 'Touch',
|
||||
'group_pinout': 'Pinout',
|
||||
'group_info': 'Info',
|
||||
'group_featured': 'Featured'
|
||||
'translate_msg': '<a href="https://github.com/gadgetoid/Pinout2">This page needs translating, can you help?</a><br><br>',
|
||||
}
|
||||
|
||||
|
||||
@ -74,11 +65,20 @@ def slugify(value):
|
||||
def load_overlay(overlay):
|
||||
try:
|
||||
data = markjaml.load('src/{}/overlay/{}.md'.format(lang, overlay))
|
||||
|
||||
loaded = data['data']
|
||||
loaded['long_description'] = data['html']
|
||||
except IOError:
|
||||
return None
|
||||
try:
|
||||
data = markjaml.load('src/{}/translate/{}.md'.format(lang, overlay))
|
||||
loaded = data['data']
|
||||
loaded['long_description'] = strings['translate_msg'] + data['html']
|
||||
loaded['type'] = strings['group_other']
|
||||
if 'formfactor' in loaded:
|
||||
if str(loaded['formfactor']) == 'Custom':
|
||||
loaded['formfactor'] = strings['form_undefined']
|
||||
except IOError:
|
||||
print 'overlay {} missing in lang {}'.format(overlay, lang)
|
||||
return None
|
||||
|
||||
'''
|
||||
If this is not an info page, then build a collection of details and append them to long_description
|
||||
@ -87,7 +87,7 @@ def load_overlay(overlay):
|
||||
details = []
|
||||
|
||||
if 'type' not in loaded:
|
||||
loaded['type'] = 'addon'
|
||||
loaded['type'] = strings['group_other']
|
||||
|
||||
if 'manufacturer' in loaded:
|
||||
details.append(strings['made_by'].format(manufacturer=loaded['manufacturer']))
|
||||
@ -115,6 +115,35 @@ def load_overlay(overlay):
|
||||
else:
|
||||
details.append(strings['pin_header'].format(pincount))
|
||||
|
||||
if 'eeprom' in loaded:
|
||||
eeprom = str(loaded['eeprom'])
|
||||
if eeprom == 'detect' or eeprom == 'True':
|
||||
details.append(strings['eeprom_detect'])
|
||||
if eeprom == 'setup':
|
||||
details.append(strings['eeprom_setup'])
|
||||
|
||||
if 'power' in loaded:
|
||||
uses_5v = False
|
||||
uses_3v3 = False
|
||||
|
||||
for pin in loaded['power']:
|
||||
pin = str(pin)
|
||||
if pin.startswith('bcm'):
|
||||
pin = pinout.bcm_to_physical(pin[3:])
|
||||
|
||||
if pin in ['2','4']:
|
||||
uses_5v = True
|
||||
|
||||
if pin in ['1','17']:
|
||||
uses_3v3 = True
|
||||
|
||||
if uses_5v and uses_3v3:
|
||||
details.append(strings['uses_5v_and_3v3'])
|
||||
elif uses_5v:
|
||||
details.append(strings['uses_5v'])
|
||||
elif uses_3v3:
|
||||
details.append(strings['uses_3v3'])
|
||||
|
||||
'''
|
||||
If the overlay includes a collection of pins then
|
||||
loop through them and count how many non-power pins are used
|
||||
@ -145,43 +174,14 @@ def load_overlay(overlay):
|
||||
if pin in ['19','21','23'] and data['mode'] == 'spi':
|
||||
uses_spi = True
|
||||
|
||||
|
||||
|
||||
if uses > 0:
|
||||
details.append(strings['uses_n_gpio_pins'].format(uses))
|
||||
|
||||
if uses_i2c:
|
||||
details.append(strings['uses_i2c'])
|
||||
|
||||
if uses_spi:
|
||||
details.append(strings['uses_spi'])
|
||||
|
||||
if 'power' in loaded:
|
||||
uses_5v = False
|
||||
uses_3v3 = False
|
||||
|
||||
for pin in loaded['power']:
|
||||
pin = str(pin)
|
||||
if pin.startswith('bcm'):
|
||||
pin = pinout.bcm_to_physical(pin[3:])
|
||||
|
||||
if pin in ['2','4']:
|
||||
uses_5v = True
|
||||
|
||||
if pin in ['1','17']:
|
||||
uses_3v3 = True
|
||||
|
||||
if uses_5v and uses_3v3:
|
||||
details.append(strings['uses_5v_and_3v3'])
|
||||
elif uses_5v:
|
||||
details.append(strings['uses_5v'])
|
||||
elif uses_3v3:
|
||||
details.append(strings['uses_3v3'])
|
||||
|
||||
if 'eeprom' in loaded:
|
||||
eeprom = str(loaded['eeprom'])
|
||||
if eeprom == 'yes':
|
||||
details.append(strings['uses_eeprom'])
|
||||
if uses > 0:
|
||||
details.append(strings['uses_n_gpio_pins'].format(uses))
|
||||
|
||||
# A URL to more information about the add-on board, could be a GitHub readme or an about page
|
||||
if 'url' in loaded:
|
||||
@ -319,7 +319,7 @@ def render_pin_page(pin_num):
|
||||
# if pin_text != None:
|
||||
return pin_url, pin_text, pin_text_name # pages[pin_url] = pin_text
|
||||
|
||||
|
||||
|
||||
def render_pin(pin_num, selected_url, overlay=None):
|
||||
pin = pinout.pins[str(pin_num)]
|
||||
|
||||
@ -537,7 +537,7 @@ as it's used in every single page.
|
||||
overlays_html is generated with all types for legacy reasons
|
||||
'''
|
||||
for overlay in overlays:
|
||||
|
||||
|
||||
link = (overlay['page_url'], overlay['name'])
|
||||
|
||||
overlays_html += [link]
|
||||
@ -573,8 +573,8 @@ for overlay in overlays:
|
||||
name=overlay['name'],
|
||||
page_url=overlay['page_url'],
|
||||
base_url=base_url,
|
||||
type=overlay['type'] if 'type' in overlay else '',
|
||||
formfactor=overlay['formfactor'] if 'formfactor' in overlay else '',
|
||||
type=overlay['type'] if 'type' in overlay else strings['group_other'],
|
||||
formfactor=overlay['formfactor'] if 'formfactor' in overlay else strings['form_undefined'],
|
||||
manufacturer=overlay['manufacturer'],
|
||||
resource_url=resource_url)})
|
||||
|
||||
@ -653,8 +653,9 @@ for url in pages:
|
||||
template = template_boards if url == 'boards' else template_main
|
||||
|
||||
if url == 'index' or url == 'boards':
|
||||
hreflang = get_hreflang_urls(url)
|
||||
langlinks = get_lang_urls(url)
|
||||
src = 'index'
|
||||
hreflang = get_hreflang_urls(src)
|
||||
langlinks = get_lang_urls(src)
|
||||
|
||||
if 'src' in pages[url]:
|
||||
src = pages[url]['src']
|
||||
|
@ -4,7 +4,7 @@ import time
|
||||
try:
|
||||
import yaml
|
||||
except ImportError:
|
||||
exit("This script requires the psutil module\nInstall with: sudo pip install PyYAML")
|
||||
exit("This script requires the yaml module\nInstall with: sudo pip install PyYAML")
|
||||
|
||||
|
||||
DB_FILE = 'pi-pinout.yaml'
|
||||
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
BIN
resources/boards/4tronix-pistep2d.png
Normal file
BIN
resources/boards/4tronix-pistep2d.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
resources/boards/4tronix-pistep2q.png
Normal file
BIN
resources/boards/4tronix-pistep2q.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
@ -470,6 +470,7 @@ nav#gpio ul.bottom li.overlay-pin a:hover {
|
||||
|
||||
nav#gpio .top li.overlay-power a .phys, .bottom li.overlay-power a .phys {
|
||||
color:#FFFFFF;
|
||||
opacity:1;
|
||||
}
|
||||
|
||||
nav#gpio ul.top li.overlay-power a,
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
---
|
||||
name: Motorsteuerung
|
||||
name: RTK Motorsteuerung
|
||||
class: board
|
||||
type: alle
|
||||
formfactor: Andere
|
||||
@ -29,36 +29,27 @@ pin:
|
||||
direction: output
|
||||
active: high
|
||||
-->
|
||||
#Ryanteck Motorsteuerung
|
||||
# RTK Motorsteuerung
|
||||
|
||||
###Ein schneller und einfacher Weg um Motoren mit deinem Pi zu steuern.
|
||||
|
||||
```python
|
||||
##Simples Motor Script für den RTK-000-001
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
#Setze BCM Broadcom Pin Nummern
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
from gpiozero import RyanteckRobot
|
||||
from time import sleep
|
||||
|
||||
#Motor 1 = Pins 17 and 18
|
||||
#Motor 2 = Pins 22 and 23
|
||||
GPIO.setup(17, GPIO.OUT)
|
||||
GPIO.setup(18, GPIO.OUT)
|
||||
robot = RyanteckRobot()
|
||||
|
||||
#Jetzt wird jede Richtung für 5 Sekunden in
|
||||
#einer Endlosschleife durchlaufen.
|
||||
while (True):
|
||||
#Sleep 1 second then turn 17 on
|
||||
GPIO.output(18, 0)
|
||||
time.sleep(1)
|
||||
GPIO.output(17, 1);
|
||||
time.sleep(5);
|
||||
#And now the other way round
|
||||
GPIO.output(17, 0)
|
||||
time.sleep(1);
|
||||
GPIO.output(18, 1);
|
||||
time.sleep(5);
|
||||
#And loop back around
|
||||
#And final cleanup
|
||||
GPIO.cleanup()
|
||||
while True:
|
||||
robot.forward()
|
||||
sleep(5)
|
||||
robot.left()
|
||||
sleep(1)
|
||||
robot.backward()
|
||||
sleep(5)
|
||||
robot.right()
|
||||
sleep(1)
|
||||
robot.stop()
|
||||
sleep(1)
|
||||
```
|
||||
|
||||
[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#ryanteck-mcb-robot)
|
||||
|
@ -6,8 +6,8 @@ type: alle
|
||||
formfactor: HAT
|
||||
manufacturer: Ryanteck
|
||||
description: Ein schneller und einfacher Weg um die grundlegenden Fähigkeiten der GPIO-Ports zu erkunden.
|
||||
url: http://www.ryanteck.uk/store/traffichat
|
||||
buy: http://www.ryanteck.uk/store/traffichat
|
||||
url: https://ryanteck.uk/hats/1-traffichat-0635648607122.html
|
||||
buy: https://ryanteck.uk/hats/1-traffichat-0635648607122.html
|
||||
image: 'traffic-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
@ -53,4 +53,4 @@ IO.setup(5,IO.OUT)
|
||||
|
||||
#Button
|
||||
IO.setup(25,IO.IN,pull_up_down=IO.PUD_UP)
|
||||
```
|
||||
```
|
||||
|
@ -11,7 +11,7 @@ github: https://github.com/pimoroni/unicornhat
|
||||
buy: http://shop.pimoroni.com/products/unicorn-hat
|
||||
image: 'unicorn-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: detect
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
default_desc: The comprehensive Raspberry Pi GPIO Pinout guide for the original Raspberry
|
||||
Pi, B+ and Pi 2
|
||||
default_title: Raspberry Pi GPIO Pinout - Pi 1, B+, Pi 2
|
||||
default_title: Raspberry Pi GPIO Pinout
|
||||
title_suffix: " at Raspberry Pi GPIO Pinout"
|
||||
base_url: /pinout/
|
||||
resource_url: /resources/
|
||||
@ -10,22 +9,28 @@ url_suffix:
|
||||
urls:
|
||||
GND: masse_ground
|
||||
strings:
|
||||
- made_by: 'Hersteller: {manufacturer}'
|
||||
- details: 'Details'
|
||||
- group_other: 'alle'
|
||||
- form_undefined: 'Andere'
|
||||
- pin_header: '{} pin header'
|
||||
- type_hat: 'HAT form-factor'
|
||||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'benutzt EEPROM'
|
||||
- eeprom_detect: 'EEPROM Hersteller ID'
|
||||
- eeprom_setup: 'benutzt EEPROM'
|
||||
- uses_i2c: 'benutzt I2C'
|
||||
- uses_spi: 'benutzt SPI'
|
||||
- wiring_pi_pin: 'Wiring Pi Anschluss {}'
|
||||
- uses_5v_and_3v3: '5v und 3v3 Stromversorgung'
|
||||
- uses_5v: '5v Stromversorgung'
|
||||
- uses_3v3: '3v3 Stromversorgung'
|
||||
- uses_n_gpio_pins: 'benutzt {} GPIO Anschlüsse'
|
||||
- bcm_pin_rev1_pi: 'BCM Anschluss {} auf dem Rev 1 ( sehr alter ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- wiring_pi_pin: 'Wiring Pi Anschluss {}'
|
||||
- made_by: 'Hersteller: {manufacturer}'
|
||||
- more_information: 'Mehr Informationen'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- github_repository: 'GitHub'
|
||||
- buy_now: 'jetzt kaufen'
|
||||
- details: 'Details'
|
||||
featured:
|
||||
- display-o-tron
|
||||
- rpf-dots
|
||||
@ -33,18 +38,74 @@ featured:
|
||||
- rtk-000-001
|
||||
overlays:
|
||||
- ground
|
||||
- iface-dpi
|
||||
- iface-gpclk
|
||||
- iface-jtag
|
||||
- iface-1wire
|
||||
- iface-pcm
|
||||
- iface-sd
|
||||
- i2c
|
||||
- spi
|
||||
- uart
|
||||
- wiringpi
|
||||
- 4tronix-picon-zero
|
||||
- 4tronix-pistep2d
|
||||
- 4tronix-pistep2q
|
||||
- ab-1-wire-plus
|
||||
- ab-1-wire-zero
|
||||
- ab-adc-differential-pi
|
||||
- ab-adc-pi-plus
|
||||
- ab-adc-pi-zero
|
||||
- ab-adcdac-pi-zero
|
||||
- ab-io-pi-plus
|
||||
- ab-io-pi-zero
|
||||
- ab-rs485-pi
|
||||
- ab-rtc-pi-plus
|
||||
- ab-rtc-pi-zero
|
||||
- ab-serial-pi-plus
|
||||
- ab-serial-pi-zero
|
||||
- ab-servo-pwm-pi-zero
|
||||
- adafruit-cap-mpr121
|
||||
- adafruit-servo-hat
|
||||
- analog-zero
|
||||
- automation-hat
|
||||
- blinkt
|
||||
- carberry
|
||||
- cirruslogic-audio-card
|
||||
- discohat
|
||||
- display-o-tron
|
||||
- display-o-tron-hat
|
||||
- rpf-dots
|
||||
- drum-hat
|
||||
- enviro-phat
|
||||
- espiot-phat
|
||||
- explorer-hat
|
||||
- explorer-hat-pro
|
||||
- explorer-phat
|
||||
- iqaudio-pi-dac
|
||||
- iqaudio-pi-digiamp
|
||||
- microdot-phat
|
||||
- phat-dac
|
||||
- pi-liter
|
||||
- piano-hat
|
||||
- piborg-ledborg
|
||||
- piborg-zeroborg
|
||||
- pibrella
|
||||
- piglow
|
||||
- pijack
|
||||
- propeller-hat
|
||||
- raspio-duino
|
||||
- redbear-iot-hat
|
||||
- rpf-dots
|
||||
- rtk-000-001
|
||||
- scroll-phat
|
||||
- sense-hat
|
||||
- skywriter-hat
|
||||
- traffic-hat
|
||||
- unicorn-hat
|
||||
- unicorn-phat
|
||||
- uugear-7port-usb-hub
|
||||
- uugear-witty-pi
|
||||
- uugear-witty-pi-2
|
||||
- uugear-zero4u
|
||||
- wifi-pants
|
||||
- zero-lipo
|
||||
|
42
src/de/translate/4tronix-picon-zero.md
Normal file
42
src/de/translate/4tronix-picon-zero.md
Normal file
@ -0,0 +1,42 @@
|
||||
<!--
|
||||
---
|
||||
name: Picon Zero
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
image: '4tronix-picon-zero.png'
|
||||
manufacturer: 4tronix
|
||||
description: A robot controller board for the Raspberry Pi
|
||||
url: http://4tronix.co.uk/piconzero/
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=552
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
'38':
|
||||
name: Ultrasonic
|
||||
mode: input/output
|
||||
i2c:
|
||||
'0x22':
|
||||
name: PiconZero
|
||||
device: ATMega328
|
||||
-->
|
||||
#Picon Zero
|
||||
|
||||
The Picon Zero is an add-on PCB for the Raspberry Pi that is physically the same size as a Raspberry Pi Zero and so is ideal as a pseudo-Hat (pHat) for the Pi Zero. However, it can of course be used on any Raspberry Pi with a 40-pin GPIO connector.
|
||||
|
||||
As well as 2 full H-Bridge motor drivers, the Picon Zero has a number of Input and Output pins that can be configured in a variety of ways, allowing you to easily add analog inputs or neopixel outputs to your Raspberry Pi without any complicated software and kernel specific drivers. It also provides an interface for an HC-SR04 ultrasonic distance sensor and opens up 5 GPIO pins from the Raspberry Pi for you to use as you see fit.
|
54
src/de/translate/4tronix-pistep2d.md
Normal file
54
src/de/translate/4tronix-pistep2d.md
Normal file
@ -0,0 +1,54 @@
|
||||
<!--
|
||||
---
|
||||
name: PiStep2 Dual
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
manufacturer: 4tronix
|
||||
description: A Dual Stepper Motor Driver for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
github:
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
image: '4tronix-pistep2d.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
'17':
|
||||
ground:
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'11':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'12':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
'13':
|
||||
name: MotorA_2
|
||||
mode: output
|
||||
'15':
|
||||
name: MotorA_3
|
||||
mode: output
|
||||
'16':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'18':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'22':
|
||||
name: MotorB_2
|
||||
mode: output
|
||||
'7':
|
||||
name: MotorB_3
|
||||
mode: output
|
||||
-->
|
||||
# PiStep2 Dual
|
||||
|
||||
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
|
78
src/de/translate/4tronix-pistep2q.md
Normal file
78
src/de/translate/4tronix-pistep2q.md
Normal file
@ -0,0 +1,78 @@
|
||||
<!--
|
||||
---
|
||||
name: PiStep2 Quad
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
manufacturer: 4tronix
|
||||
description: A Quad Stepper Motor Driver for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
github:
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
image: '4tronix-pistep2q.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
'17':
|
||||
ground:
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'11':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'12':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
'13':
|
||||
name: MotorA_2
|
||||
mode: output
|
||||
'15':
|
||||
name: MotorA_3
|
||||
mode: output
|
||||
'16':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'18':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'22':
|
||||
name: MotorB_2
|
||||
mode: output
|
||||
'7':
|
||||
name: MotorB_3
|
||||
mode: output
|
||||
'33':
|
||||
name: MotorC_0
|
||||
mode: output
|
||||
'32':
|
||||
name: MotorC_1
|
||||
mode: output
|
||||
'31':
|
||||
name: MotorC_2
|
||||
mode: output
|
||||
'29':
|
||||
name: MotorC_3
|
||||
mode: output
|
||||
'38':
|
||||
name: MotorD_0
|
||||
mode: output
|
||||
'37':
|
||||
name: MotorD_1
|
||||
mode: output
|
||||
'36':
|
||||
name: MotorD_2
|
||||
mode: output
|
||||
'35':
|
||||
name: MotorD_3
|
||||
mode: output
|
||||
-->
|
||||
# PiStep2 Quad
|
||||
|
||||
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
|
@ -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")
|
@ -1,18 +1,29 @@
|
||||
<!--
|
||||
---
|
||||
name: 1 Wire Pi Plus
|
||||
name: 1 Wire Pi Zero
|
||||
class: board
|
||||
type: com
|
||||
formfactor: HAT
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: 1-Wire to I2C host interface
|
||||
url: https://www.abelectronics.co.uk/p/60/1-Wire-Pi-Plus
|
||||
url: https://www.abelectronics.co.uk/p/76/1-Wire-Pi-Zero
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/60/1-Wire-Pi-Plus
|
||||
image: 'ab-1-wire-pi-plus.png'
|
||||
buy: https://www.abelectronics.co.uk/p/76/1-Wire-Pi-Zero
|
||||
image: 'ab-1-wire-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power: 3v3,5v
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
@ -23,12 +34,12 @@ i2c:
|
||||
name: DS2482
|
||||
device: DS2482-100
|
||||
-->
|
||||
#1 Wire Pi Plus
|
||||
#1 Wire Pi Zero
|
||||
|
||||
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 Zero from AB Electronics UK is a communication board supporting the 1-Wire® protocol designed for use on the Raspberry Pi Zero. 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 1-Wire® port on the 1 Wire Pi Zero 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 Zero 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 Zero 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")
|
@ -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.
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries available on GitHub.
|
@ -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.
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
@ -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.
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
51
src/de/translate/ab-adcdac-pi-zero.md
Normal file
51
src/de/translate/ab-adcdac-pi-zero.md
Normal file
@ -0,0 +1,51 @@
|
||||
<!--
|
||||
---
|
||||
name: ADC-DAC Pi Zero
|
||||
class: board
|
||||
type: adc
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: 2 channel Analogue to Digital Converter and 2 channel Digital to Analogue Converter
|
||||
url: https://www.abelectronics.co.uk/p/74/ADC-DAC-Pi-Zero-Raspberry-Pi-ADC-and-DAC-expansion-board
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/74/ADC-DAC-Pi-Zero-Raspberry-Pi-ADC-and-DAC-expansion-board
|
||||
image: 'ab-adcdac-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'19':
|
||||
mode: spi
|
||||
'21':
|
||||
mode: spi
|
||||
'23':
|
||||
mode: spi
|
||||
'24':
|
||||
mode: spi
|
||||
'26':
|
||||
mode: spi
|
||||
install:
|
||||
'devices':
|
||||
- 'spi'
|
||||
-->
|
||||
#ADC-DAC Pi Zero
|
||||
|
||||
The ADC-DAC Pi Zero is a 2 channel 12 bit analogue to digital converter and 2 channel 12 bit digital to analogue converter designed to work with the Raspberry Pi. Designed for the same footprint as the Raspberry Pi Zero the ADC-DAC Pi Zero is also compatible with full size Raspberry Pi models.
|
||||
|
||||
The ADC-DAC Pi Zero is based on the Microchip MCP3202 A/D converter containing 2 analogue inputs with 12 bit resolution with a Microchip MCP4822 dual channel 12-bit DAC with internal voltage reference.
|
||||
|
||||
Max ADC Sample Rate: 100 ksamples/sec
|
||||
|
||||
Max ADC Sample Rate under Python: 12,000 samples per second.
|
||||
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
@ -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.
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
56
src/de/translate/ab-io-pi-zero.md
Normal file
56
src/de/translate/ab-io-pi-zero.md
Normal file
@ -0,0 +1,56 @@
|
||||
<!--
|
||||
---
|
||||
name: IO Pi Zero
|
||||
class: board
|
||||
type: io
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: 16 Channel Digital Expansion Board
|
||||
url: https://www.abelectronics.co.uk/p/71/IO-Pi-Zero
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/71/IO-Pi-Zero
|
||||
image: 'ab-io-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
i2c:
|
||||
'0x20':
|
||||
name: MCP23017
|
||||
device: MCP23017
|
||||
-->
|
||||
#IO Pi Zero
|
||||
|
||||
The IO Pi Zero is a 16 channel digital expansion board designed for use on the Raspberry Pi Zero. The board is based around the MCP23017 16-bit I/O expander from Microchip Technology Inc.
|
||||
|
||||
The IO Pi Zero 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 Zero along with other expansion boards.
|
||||
|
||||
##Features
|
||||
|
||||
- 16 Digital Inputs/Outputs
|
||||
- Control via the Raspberry Pi I2C port
|
||||
- Stack up to 8 IO Pi boards on a single Raspberry Pi
|
||||
- Jumper selectable I2C addresses
|
||||
- External 5V Input with isolation solder bridge
|
||||
- Based on the MCP23017 from Microchip Technologies Inc
|
||||
- Configurable interrupt output pins - Configurable as active-high, active-low or open-drain
|
||||
- INTA and INTB can be configured to operate independently or together
|
||||
- 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, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
48
src/de/translate/ab-rs485-pi.md
Normal file
48
src/de/translate/ab-rs485-pi.md
Normal file
@ -0,0 +1,48 @@
|
||||
<!--
|
||||
---
|
||||
name: RS485 Pi
|
||||
class: board
|
||||
type: com
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: UART to RS485 Converter
|
||||
url: https://www.abelectronics.co.uk/p/77/RS485-Pi
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/77/RS485-Pi
|
||||
image: 'ab-rs485-pi.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'8':
|
||||
mode: UART
|
||||
'10':
|
||||
mode: UART
|
||||
-->
|
||||
#RS485 Pi
|
||||
|
||||
The RS485 Pi is a UART to RS485 serial converter for the Raspberry Pi.
|
||||
|
||||
The RS485 port is connected to the UART port on the Raspberry Pi using a SN65HVD72 interface. The SN65HVD72 IC converts the 3.3V UART port to RS485 differential voltages allowing communication with RS485 compatible devices over a twisted pair cable. The RS485 port can be accessed through the DB9 port or the solder points on the PCB.
|
||||
|
||||
The RS485 Pi contains protection against voltage spikes in the form of a TVS Diode and two 10O, Pulse-Proof Thick-Film Resistors. A 120O terminator resistor is included with the board.
|
||||
|
||||
##Features
|
||||
|
||||
- RS-485 Half Duplex Port.
|
||||
- Up to 250 kbps transfer rate.
|
||||
- Use the Raspberry Pi to control external RS-485 devices.
|
||||
- Stackable with other Raspberry Pi accessory boards.
|
||||
- Mounting holes for use with the AB Electronics UK mounting kits (sold separately)
|
||||
|
||||
[Configuring the UART communication on the Raspberry Pi](https://www.abelectronics.co.uk/kb/article/20/raspberry-pi-serial-port-usage)
|
@ -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.
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
45
src/de/translate/ab-rtc-pi-zero.md
Normal file
45
src/de/translate/ab-rtc-pi-zero.md
Normal file
@ -0,0 +1,45 @@
|
||||
<!--
|
||||
---
|
||||
name: RTC Pi Zero
|
||||
class: board
|
||||
type: rtc
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: Real-Time Clock Module for the Raspberry Pi
|
||||
url: https://www.abelectronics.co.uk/p/70/RTC-Pi-Zero
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/70/RTC-Pi-Zero
|
||||
image: 'ab-rtc-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
i2c:
|
||||
'0x68':
|
||||
name: DS1307
|
||||
device: DS1307
|
||||
-->
|
||||
#RTC Pi Zero
|
||||
|
||||
The RTC Pi Zero is a battery backed real-time clock module for the Raspberry Pi Zero. 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 Zero when it is switched back on.
|
||||
|
||||
The RTC Pi Zero 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 Zero along with other expansion boards. The RTC Pi Zero 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 Zero also includes an I2C logic level converter allowing you to connect other 5V I2C devices to your Raspberry Pi.
|
||||
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
@ -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
|
||||
|
@ -1,27 +1,36 @@
|
||||
<!--
|
||||
---
|
||||
name: Serial Pi Plus
|
||||
name: Serial Pi Zero
|
||||
class: board
|
||||
type: com
|
||||
formfactor: HAT
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: UART to RS232 Converter
|
||||
url: https://www.abelectronics.co.uk/p/51/Serial-Pi-Plus
|
||||
url: https://www.abelectronics.co.uk/p/75/Serial-Pi-Zero
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/51/Serial-Pi-Plus
|
||||
image: 'ab-serial-pi-plus.png'
|
||||
buy: https://www.abelectronics.co.uk/p/75/Serial-Pi-Zero
|
||||
image: 'ab-serial-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power: 3v3
|
||||
power:
|
||||
'1':
|
||||
ground:
|
||||
'6':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'8':
|
||||
mode: UART
|
||||
'10':
|
||||
mode: UART
|
||||
-->
|
||||
#Serial Pi Plus
|
||||
#Serial Pi Zero
|
||||
|
||||
The Serial Pi Plus is a UART to RS232 serial converter for the Raspberry Pi.
|
||||
The Serial Pi Zero is a UART to RS232 serial converter for the Raspberry Pi Zero.
|
||||
|
||||
The RS232 port is connected to the UART port on the Raspberry Pi using a MAX3232 interface. The MAX3232 IC converts the 3.3V UART port to RS232 voltages allowing communication with RS232 compatible devices over a DB9 serial cable or with the use of a null-modem cable the board allows terminal access with linux on the Raspberry Pi using a terminal application. The RS232 port can be accessed through the DB9 port or the solder points on the PCB.
|
||||
|
||||
@ -29,7 +38,7 @@ The RS232 port is connected to the UART port on the Raspberry Pi using a MAX3232
|
||||
|
||||
- RS232 Master Port.
|
||||
- Control the Raspberry Pi over RS232 or connect to external serial accessories.
|
||||
- Stackable with other Raspberry Pi A+, Raspberry Pi B+ and Raspberry Pi 2 and Raspberry Pi accessory boards.
|
||||
- Stackable with other Raspberry Pi accessory boards.
|
||||
- Mounting holes for use with the AB Electronics UK mounting kits (sold separately)
|
||||
|
||||
[Configuring the RS232 communication on the Raspberry Pi](https://www.abelectronics.co.uk/kb/article/20/raspberry-pi-serial-port-usage)
|
44
src/de/translate/ab-servo-pwm-pi-zero.md
Normal file
44
src/de/translate/ab-servo-pwm-pi-zero.md
Normal file
@ -0,0 +1,44 @@
|
||||
<!--
|
||||
---
|
||||
name: Servo PWM Pi Zero
|
||||
class: board
|
||||
type: io,motor
|
||||
formfactor: pHAT
|
||||
manufacturer: AB Electronics
|
||||
description: 16-channel, 12-bit PWM Controller
|
||||
url: https://www.abelectronics.co.uk/p/72/Servo-PWM-Pi-Zero
|
||||
github: https://github.com/abelectronicsuk
|
||||
buy: https://www.abelectronics.co.uk/p/72/Servo-PWM-Pi-Zero
|
||||
image: 'ab-servo-pi-zero.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'14':
|
||||
'20':
|
||||
'30':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
'7':
|
||||
name: OE
|
||||
mode: output
|
||||
active: high
|
||||
i2c:
|
||||
'0x40':
|
||||
name: PCA9685
|
||||
device: PCA9685
|
||||
-->
|
||||
#Servo PWM Pi Zero
|
||||
|
||||
The Servo PWM Pi Zero is a 16-channel, 12-bit PWM controller for the Raspberry Pi, suitable for driving LEDs and radio control servos. The board is based around PCA9685 PWM I2C LED controller IC from NXT and can drive each of the 16 outputs with 12 bit (4096 steps) duty cycle from 0% to 100%.
|
||||
|
||||
The output frequency is programmable from a typical 40Hz to 1000Hz. Each output driver is programmed to be either open-drain with a 22 mA current sink capability at 5 V or totem pole with a 22 mA sink, 10 mA source capability at 5 V. 220R current limiting resistors are used on each channel allowing you to connect servos or LEDs directly to the outputs.
|
||||
|
||||
Arduino, C, Node.js, Windows 10 IOT, Python 2 and Python 3 libraries are available on GitHub.
|
@ -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.
|
||||
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)
|
||||
```
|
||||
|
@ -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
|
||||
@ -11,11 +11,18 @@ github: https://github.com/adafruit/Adafruit_Python_PCA9685
|
||||
buy: https://www.adafruit.com/product/2327
|
||||
image: 'adafruit-servo-hat.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
eeprom: yes
|
||||
power:
|
||||
'1':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
@ -39,4 +46,4 @@ install:
|
||||
The Adafruit Servo/PWM HAT allows you to drive up to 16 servos or PWM outputs over I2C with only 2 pins.
|
||||
The on-board PWM controller will drive all 16 channels simultaneously with no additional processing overhead for the Raspberry Pi. Using a binary addressing system set by jumpers you can solder on the PCB, it is possible to stack up to 62 HATs to control up to 992 servos, using nothing more than the I2C bus.
|
||||
|
||||
Important note: servos can use a lot of power and it is not a good idea to use the Raspberry Pi's 5v pin to power them up. Electrical noise and 'brownouts' from excess current draw could cause your Pi to act erratically, reset and/or overheat. Keep the Pi power supply and the servos power supply completely separate!
|
||||
Important note: servos can use a lot of power and it is not a good idea to use the Raspberry Pi's 5v pin to power them up. Electrical noise and 'brownouts' from excess current draw could cause your Pi to act erratically, reset and/or overheat. Keep the Pi power supply and the servos power supply completely separate!
|
||||
|
@ -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
|
||||
* 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)
|
||||
|
101
src/de/translate/automation-hat.md
Normal file
101
src/de/translate/automation-hat.md
Normal file
@ -0,0 +1,101 @@
|
||||
<!--
|
||||
---
|
||||
name: Automation HAT
|
||||
class: board
|
||||
type: adc,io,motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pimoroni
|
||||
description: An all-in-one home automation and control board
|
||||
url: http://shop.pimoroni.com/products/automation-hat
|
||||
github: https://github.com/pimoroni/automation-hat
|
||||
buy: http://shop.pimoroni.com/products/automation-hat
|
||||
image: 'automation-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
power:
|
||||
'2':
|
||||
'17':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
'29':
|
||||
name: Output 1
|
||||
mode: output
|
||||
active: high
|
||||
'31':
|
||||
name: Output 3
|
||||
mode: output
|
||||
active: high
|
||||
'32':
|
||||
name: Output 2
|
||||
mode: output
|
||||
active: high
|
||||
'33':
|
||||
name: Relay 1
|
||||
mode: output
|
||||
active: high
|
||||
'35':
|
||||
name: Relay 2
|
||||
mode: output
|
||||
active: high
|
||||
'36':
|
||||
name: Relay 3
|
||||
mode: output
|
||||
active: high
|
||||
'37':
|
||||
name: Input 1
|
||||
mode: input
|
||||
active: high
|
||||
'38':
|
||||
name: Input 2
|
||||
mode: input
|
||||
active: high
|
||||
'40':
|
||||
name: Input 3
|
||||
mode: input
|
||||
active: high
|
||||
i2c:
|
||||
'0x54':
|
||||
name: LED Driver
|
||||
device: sn3218
|
||||
'0x48':
|
||||
name: Analog Input
|
||||
device: ads1015
|
||||
install:
|
||||
'devices':
|
||||
- 'i2c'
|
||||
'apt':
|
||||
- 'python-smbus'
|
||||
- 'python3-smbus'
|
||||
'python':
|
||||
- 'automationhat'
|
||||
'python3':
|
||||
- 'automationhat'
|
||||
-->
|
||||
#Automation HAT
|
||||
|
||||
Automation HAT is a home monitoring and automation controller for the Raspberry Pi; with relays, analog channels, powered outputs, and buffered inputs. All 24V tolerant.
|
||||
|
||||
To get the HAT set up and ready to go you can use the one-line product installer:
|
||||
|
||||
```bash
|
||||
curl -sS get.pimoroni.com/automationhat | bash
|
||||
```
|
||||
|
||||
Then import it into your Python script and start tinkering:
|
||||
|
||||
```bash
|
||||
import automationhat
|
||||
automationhat.relay.one.on()
|
||||
```
|
@ -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.
|
||||
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)
|
||||
```
|
||||
|
@ -15,6 +15,13 @@ power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'8':
|
||||
name: TXD / Transmit
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
|
@ -15,6 +15,13 @@ power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'8':
|
||||
name: TXD / Transmit
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
* 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)
|
||||
|
@ -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)
|
||||
|
38
src/de/translate/piborg-zeroborg.md
Normal file
38
src/de/translate/piborg-zeroborg.md
Normal file
@ -0,0 +1,38 @@
|
||||
<!--
|
||||
---
|
||||
name: ZeroBorg
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: Custom
|
||||
manufacturer: PiBorg
|
||||
description: A PiZero robot controller
|
||||
url: https://www.piborg.org/zeroborg
|
||||
buy: https://www.piborg.org/zeroborg
|
||||
image: 'piborg-zeroborg.png'
|
||||
pincount: 6
|
||||
eeprom: no
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
'4':
|
||||
ground:
|
||||
'6':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
-->
|
||||
#ZeroBorg
|
||||
|
||||
The PiBorg ZeroBorg is a 4 channel motor controller for the Raspberry Pi Zero.
|
||||
|
||||
It supports configurable i2c slave addresses from 3 (0x03) to 119 (0x77), meaning that while it uses i2c it can potentially co-exist with *any* other i2c board. See the "Multiple Boards" section of the ZeroBorg install guide for more details.
|
||||
|
||||
* 4 full H-Bridges
|
||||
* Drives 4 motors or 2 stepper motors
|
||||
* 2A peak or 1.5A RMS per bridge
|
||||
* Onboard fast blow fuse at 5A
|
||||
* Designed to run off a 9V power source
|
||||
* 2 analogue inputs
|
||||
* I2C communication
|
53
src/de/translate/pijack.md
Normal file
53
src/de/translate/pijack.md
Normal file
@ -0,0 +1,53 @@
|
||||
<!--
|
||||
---
|
||||
name: PiJack
|
||||
class: board
|
||||
type: network
|
||||
formfactor: pHAT
|
||||
manufacturer: Hot Glue
|
||||
description: Add Ethernet to your Pi Zero
|
||||
url: https://pijack.net
|
||||
buy: https://pijack.net
|
||||
image: 'pijack.png'
|
||||
pincount: 40
|
||||
eeprom: setup
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'22':
|
||||
name: INT
|
||||
mode: input
|
||||
description: Ethernet controller interrupt
|
||||
'19':
|
||||
mode: spi
|
||||
'21':
|
||||
mode: spi
|
||||
'23':
|
||||
mode: spi
|
||||
'24':
|
||||
mode: spi
|
||||
-->
|
||||
#PiJack
|
||||
|
||||
The easiest way to add Ethernet to your Rasberry Pi Zero. Simply plug the PiJack board on to your Pi and boot the latest Raspbian. PiJack will be autodetected by the Linux kernel, the correct driver will be loaded and the Ethernet interface will be ready to use.
|
||||
|
||||
By default, Raspbian will automatically configure the interface for DHCP so as soon as you connect PiJack to your network your Pi will request an address and be ready to go online!
|
||||
|
||||
Each PiJack board is programmed with a unique and persistent MAC address so each time your Pi boots the MAC address will remain the same. This allows you to set up your router to hand out the same IP address each time.
|
||||
|
||||
There are a couple of recent improvements to the Ethernet controller driver, so if you're not running the latest version of Raspbian on your Pi, either download it and reflash your microSD card again, or run
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,13 @@ eeprom: yes
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'8':
|
||||
name: TXD / Transmit
|
||||
|
@ -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
|
||||
|
@ -1,53 +1,58 @@
|
||||
<!--
|
||||
---
|
||||
name: IoT HAT
|
||||
name: IoT pHAT
|
||||
class: board
|
||||
type: iot
|
||||
formfactor: pHAT
|
||||
manufacturer: RedBear
|
||||
description: A Wi-Fi + Bluetooth add-on board for the Pi Zero
|
||||
url: https://www.kickstarter.com/projects/1991736672/iot-hat-for-raspberry-pi-a-must-have-for-pi-zero
|
||||
github:
|
||||
buy: https://www.kickstarter.com/projects/1991736672/iot-hat-for-raspberry-pi-a-must-have-for-pi-zero
|
||||
github: https://github.com/redbear/IoT_pHAT
|
||||
buy: https://redbear.cc/product/rpi/iot-phat.html
|
||||
image: 'redbear-iot-hat.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power: 3v3,5v
|
||||
eeprom: setup
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'11':
|
||||
name: 'RTS'
|
||||
'13':
|
||||
name: 'SDIO_D3'
|
||||
'15':
|
||||
name: 'SDIO_CLK'
|
||||
'29':
|
||||
name: 'BT_RST_N'
|
||||
'31':
|
||||
name: 'WL_REG_ON'
|
||||
'33':
|
||||
name: 'BT_HOST_WAKE'
|
||||
'37':
|
||||
name: 'SDIO_D2'
|
||||
'8':
|
||||
name: 'TXD'
|
||||
name: 'BLE TDX'
|
||||
'10':
|
||||
name: 'RXD'
|
||||
name: 'BLE RXD'
|
||||
'11':
|
||||
name: 'BLE RTS'
|
||||
'13':
|
||||
name: 'WiFi SDIO_D3'
|
||||
'15':
|
||||
name: 'WiFi SDIO_CLK'
|
||||
'16':
|
||||
name: 'SDIO_CMD'
|
||||
name: 'WiFi SDIO_CMD'
|
||||
'18':
|
||||
name: 'SDIO_D0'
|
||||
name: 'WiFi SDIO_D0'
|
||||
'22':
|
||||
name: 'SDIO_D1'
|
||||
'32':
|
||||
name: 'WL_HOST_WAKE'
|
||||
name: 'WiFi SDIO_D1'
|
||||
'29':
|
||||
name: 'BLE BT_RST_N'
|
||||
'31':
|
||||
name: 'WiFi WL_REG_ON'
|
||||
'36':
|
||||
name: 'CTS'
|
||||
'38':
|
||||
name: 'BT_WAKE'
|
||||
name: 'BLE CTS'
|
||||
'37':
|
||||
name: 'WiFi SDIO_D2'
|
||||
-->
|
||||
#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).
|
||||
|
||||
|
@ -16,6 +16,13 @@ power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
|
@ -9,7 +9,19 @@ description: Add-on board that includes an 8×8 RGB LED matrix, 5-button joystic
|
||||
url: https://www.raspberrypi.org/products/sense-hat/
|
||||
image: 'sense-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: setup
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
42
src/en/overlay/4tronix-picon-zero.md
Normal file
42
src/en/overlay/4tronix-picon-zero.md
Normal file
@ -0,0 +1,42 @@
|
||||
<!--
|
||||
---
|
||||
name: Picon Zero
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
image: '4tronix-picon-zero.png'
|
||||
manufacturer: 4tronix
|
||||
description: A robot controller board for the Raspberry Pi
|
||||
url: http://4tronix.co.uk/piconzero/
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=552
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
'14':
|
||||
'20':
|
||||
'25':
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'3':
|
||||
mode: i2c
|
||||
'5':
|
||||
mode: i2c
|
||||
'38':
|
||||
name: Ultrasonic
|
||||
mode: input/output
|
||||
i2c:
|
||||
'0x22':
|
||||
name: PiconZero
|
||||
device: ATMega328
|
||||
-->
|
||||
#Picon Zero
|
||||
|
||||
The Picon Zero is an add-on PCB for the Raspberry Pi that is physically the same size as a Raspberry Pi Zero and so is ideal as a pseudo-Hat (pHat) for the Pi Zero. However, it can of course be used on any Raspberry Pi with a 40-pin GPIO connector.
|
||||
|
||||
As well as 2 full H-Bridge motor drivers, the Picon Zero has a number of Input and Output pins that can be configured in a variety of ways, allowing you to easily add analog inputs or neopixel outputs to your Raspberry Pi without any complicated software and kernel specific drivers. It also provides an interface for an HC-SR04 ultrasonic distance sensor and opens up 5 GPIO pins from the Raspberry Pi for you to use as you see fit.
|
54
src/en/overlay/4tronix-pistep2d.md
Normal file
54
src/en/overlay/4tronix-pistep2d.md
Normal file
@ -0,0 +1,54 @@
|
||||
<!--
|
||||
---
|
||||
name: PiStep2 Dual
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
manufacturer: 4tronix
|
||||
description: A Dual Stepper Motor Driver for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
github:
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
image: '4tronix-pistep2d.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
'17':
|
||||
ground:
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'11':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'12':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
'13':
|
||||
name: MotorA_2
|
||||
mode: output
|
||||
'15':
|
||||
name: MotorA_3
|
||||
mode: output
|
||||
'16':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'18':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'22':
|
||||
name: MotorB_2
|
||||
mode: output
|
||||
'7':
|
||||
name: MotorB_3
|
||||
mode: output
|
||||
-->
|
||||
# PiStep2 Dual
|
||||
|
||||
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
|
78
src/en/overlay/4tronix-pistep2q.md
Normal file
78
src/en/overlay/4tronix-pistep2q.md
Normal file
@ -0,0 +1,78 @@
|
||||
<!--
|
||||
---
|
||||
name: PiStep2 Quad
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: pHAT
|
||||
manufacturer: 4tronix
|
||||
description: A Quad Stepper Motor Driver for Raspberry Pi
|
||||
url: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
github:
|
||||
buy: http://4tronix.co.uk/store/index.php?rt=product/product&product_id=554
|
||||
image: '4tronix-pistep2q.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
power:
|
||||
'2':
|
||||
'17':
|
||||
ground:
|
||||
'30':
|
||||
'34':
|
||||
'39':
|
||||
pin:
|
||||
'11':
|
||||
name: MotorA_0
|
||||
mode: output
|
||||
'12':
|
||||
name: MotorA_1
|
||||
mode: output
|
||||
'13':
|
||||
name: MotorA_2
|
||||
mode: output
|
||||
'15':
|
||||
name: MotorA_3
|
||||
mode: output
|
||||
'16':
|
||||
name: MotorB_0
|
||||
mode: output
|
||||
'18':
|
||||
name: MotorB_1
|
||||
mode: output
|
||||
'22':
|
||||
name: MotorB_2
|
||||
mode: output
|
||||
'7':
|
||||
name: MotorB_3
|
||||
mode: output
|
||||
'33':
|
||||
name: MotorC_0
|
||||
mode: output
|
||||
'32':
|
||||
name: MotorC_1
|
||||
mode: output
|
||||
'31':
|
||||
name: MotorC_2
|
||||
mode: output
|
||||
'29':
|
||||
name: MotorC_3
|
||||
mode: output
|
||||
'38':
|
||||
name: MotorD_0
|
||||
mode: output
|
||||
'37':
|
||||
name: MotorD_1
|
||||
mode: output
|
||||
'36':
|
||||
name: MotorD_2
|
||||
mode: output
|
||||
'35':
|
||||
name: MotorD_3
|
||||
mode: output
|
||||
-->
|
||||
# PiStep2 Quad
|
||||
|
||||
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
|
@ -41,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.
|
||||
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)
|
||||
```
|
||||
|
@ -11,7 +11,7 @@ github: https://github.com/adafruit/Adafruit_Python_PCA9685
|
||||
buy: https://www.adafruit.com/product/2327
|
||||
image: 'adafruit-servo-hat.png'
|
||||
pincount: 40
|
||||
eeprom: no
|
||||
eeprom: yes
|
||||
power:
|
||||
'1':
|
||||
ground:
|
||||
@ -46,4 +46,4 @@ install:
|
||||
The Adafruit Servo/PWM HAT allows you to drive up to 16 servos or PWM outputs over I2C with only 2 pins.
|
||||
The on-board PWM controller will drive all 16 channels simultaneously with no additional processing overhead for the Raspberry Pi. Using a binary addressing system set by jumpers you can solder on the PCB, it is possible to stack up to 62 HATs to control up to 992 servos, using nothing more than the I2C bus.
|
||||
|
||||
Important note: servos can use a lot of power and it is not a good idea to use the Raspberry Pi's 5v pin to power them up. Electrical noise and 'brownouts' from excess current draw could cause your Pi to act erratically, reset and/or overheat. Keep the Pi power supply and the servos power supply completely separate!
|
||||
Important note: servos can use a lot of power and it is not a good idea to use the Raspberry Pi's 5v pin to power them up. Electrical noise and 'brownouts' from excess current draw could cause your Pi to act erratically, reset and/or overheat. Keep the Pi power supply and the servos power supply completely separate!
|
||||
|
@ -38,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:
|
||||
|
||||
@ -48,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
|
||||
* 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)
|
||||
|
@ -26,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.
|
||||
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)
|
||||
```
|
||||
|
@ -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
|
||||
|
@ -2,7 +2,7 @@
|
||||
---
|
||||
name: Explorer HAT Pro
|
||||
class: board
|
||||
type: adc,io,motor
|
||||
type: adc,io,motor,touch
|
||||
formfactor: HAT
|
||||
manufacturer: Pimoroni
|
||||
description: An all-in-one light, input, motor, touch and output add-on board
|
||||
|
@ -2,7 +2,7 @@
|
||||
---
|
||||
name: Explorer HAT
|
||||
class: board
|
||||
type: io
|
||||
type: multi,io,touch
|
||||
formfactor: HAT
|
||||
manufacturer: Pimoroni
|
||||
description: An all-in-one light, input, touch and output add-on board
|
||||
|
@ -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
|
||||
|
@ -51,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.
|
||||
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.
|
||||
|
@ -6,7 +6,7 @@ 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
|
||||
@ -63,4 +63,23 @@ Applications:
|
||||
* Bar graph
|
||||
* Light chaser
|
||||
* Activity indicator
|
||||
* Lighting effects
|
||||
* 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)
|
||||
|
@ -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
|
||||
|
@ -37,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)
|
||||
|
@ -4,16 +4,15 @@ name: PiJack
|
||||
class: board
|
||||
type: network
|
||||
formfactor: pHAT
|
||||
manufacturer: Hot Glue Technologies
|
||||
manufacturer: Hot Glue
|
||||
description: Add Ethernet to your Pi Zero
|
||||
url: https://pijack.net
|
||||
buy: https://pijack.net
|
||||
image: 'pijack.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: setup
|
||||
power:
|
||||
'2':
|
||||
'4':
|
||||
ground:
|
||||
'6':
|
||||
'9':
|
||||
@ -49,7 +48,6 @@ There are a couple of recent improvements to the Ethernet controller driver, so
|
||||
```bash
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade
|
||||
sudo rpi-update
|
||||
```
|
||||
|
||||
|
||||
|
@ -7,11 +7,11 @@ formfactor: pHAT
|
||||
manufacturer: RedBear
|
||||
description: A Wi-Fi + Bluetooth add-on board for the Pi Zero
|
||||
url: https://www.kickstarter.com/projects/1991736672/iot-hat-for-raspberry-pi-a-must-have-for-pi-zero
|
||||
github:
|
||||
github: https://github.com/redbear/IoT_pHAT
|
||||
buy: https://redbear.cc/product/rpi/iot-phat.html
|
||||
image: 'redbear-iot-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: setup
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
---
|
||||
name: Motor Controller Board
|
||||
name: RTK Motor Controller
|
||||
class: board
|
||||
type: motor
|
||||
formfactor: Custom
|
||||
@ -38,35 +38,29 @@ pin:
|
||||
direction: output
|
||||
active: high
|
||||
-->
|
||||
#Motor Controller Board
|
||||
# RTK Motor Controller
|
||||
|
||||
###A quick and easy way to start driving motors on your Raspberry Pi
|
||||
A quick and easy way to start driving motors on your Raspberry Pi
|
||||
|
||||
## Code
|
||||
|
||||
```python
|
||||
##Simple motor script for the RTK-000-001
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
#Set to broadcom pin numbers
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
from gpiozero import RyanteckRobot
|
||||
from time import sleep
|
||||
|
||||
#Motor 1 = Pins 17 and 18
|
||||
#Motor 2 = Pins 22 and 23
|
||||
GPIO.setup(17, GPIO.OUT)
|
||||
GPIO.setup(18, GPIO.OUT)
|
||||
robot = RyanteckRobot()
|
||||
|
||||
#Now loop forever turning one direction for 5 seconds, then the other
|
||||
while (True):
|
||||
#Sleep 1 second then turn 17 on
|
||||
GPIO.output(18, 0)
|
||||
time.sleep(1)
|
||||
GPIO.output(17, 1);
|
||||
time.sleep(5);
|
||||
#And now the other way round
|
||||
GPIO.output(17, 0)
|
||||
time.sleep(1);
|
||||
GPIO.output(18, 1);
|
||||
time.sleep(5);
|
||||
#And loop back around
|
||||
#And final cleanup
|
||||
GPIO.cleanup()
|
||||
while True:
|
||||
robot.forward()
|
||||
sleep(5)
|
||||
robot.left()
|
||||
sleep(1)
|
||||
robot.backward()
|
||||
sleep(5)
|
||||
robot.right()
|
||||
sleep(1)
|
||||
robot.stop()
|
||||
sleep(1)
|
||||
```
|
||||
|
||||
[GPIO Zero docs](http://gpiozero.readthedocs.io/en/v1.3.1/api_boards.html#ryanteck-mcb-robot)
|
||||
|
@ -9,7 +9,7 @@ description: Add-on board that includes an 8×8 RGB LED matrix, 5-button joystic
|
||||
url: https://www.raspberrypi.org/products/sense-hat/
|
||||
image: 'sense-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: setup
|
||||
power:
|
||||
'1':
|
||||
'2':
|
||||
|
@ -6,8 +6,8 @@ type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: Ryanteck
|
||||
description: A quick and easy way to learn the basics of GPIO on a budget
|
||||
url: http://www.ryanteck.uk/store/traffichat
|
||||
buy: http://www.ryanteck.uk/store/traffichat
|
||||
url: https://ryanteck.uk/hats/1-traffichat-0635648607122.html
|
||||
buy: https://ryanteck.uk/hats/1-traffichat-0635648607122.html
|
||||
image: 'traffic-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
@ -50,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()
|
||||
```
|
||||
|
@ -11,7 +11,7 @@ github: https://github.com/pimoroni/unicornhat
|
||||
buy: http://shop.pimoroni.com/products/unicorn-hat
|
||||
image: 'unicorn-hat.png'
|
||||
pincount: 40
|
||||
eeprom: yes
|
||||
eeprom: detect
|
||||
power:
|
||||
'2':
|
||||
ground:
|
||||
|
@ -1 +1,3 @@
|
||||
These pins are generally reserved for i2c communication with a HAT EEPROM.
|
||||
These pins are generally reserved for i2c communication with an EEPROM.
|
||||
|
||||
Connect those pins for auto configuration, if the board provides the feature (check the board description for details of EEPROM functionality).
|
||||
|
@ -10,42 +10,47 @@ urls:
|
||||
GND: ground
|
||||
strings:
|
||||
- details: 'Details'
|
||||
- made_by: 'Made by {manufacturer}'
|
||||
- group_other: 'other'
|
||||
- form_undefined: 'Undefined'
|
||||
- pin_header: '{} pin header'
|
||||
- type_hat: 'HAT form-factor'
|
||||
- type_phat: 'pHAT form-factor'
|
||||
- type_classic: 'Classic form-factor'
|
||||
- pin_header: '{} pin header'
|
||||
- uses_eeprom: 'Uses EEPROM'
|
||||
- uses_i2c: 'Uses I2C'
|
||||
- uses_spi: 'Uses SPI'
|
||||
- eeprom_detect: 'EEPROM product ID'
|
||||
- eeprom_setup: 'EEPROM auto configuration'
|
||||
- uses_i2c: 'Communication over I2C'
|
||||
- uses_spi: 'Communication over SPI'
|
||||
- uses_5v_and_3v3: 'Needs 5v and 3v3 power'
|
||||
- uses_5v: 'Needs 5v power'
|
||||
- uses_3v3: 'Needs 3v3 power'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- uses_n_gpio_pins: 'Uses {} GPIO pins'
|
||||
- bcm_pin_rev1_pi: 'BCM pin {} on Rev 1 ( very early ) Pi'
|
||||
- physical_pin_n: 'Physical pin {}'
|
||||
- wiring_pi_pin: 'Wiring Pi pin {}'
|
||||
- made_by: 'Made by {manufacturer}'
|
||||
- more_information: 'More Information'
|
||||
- github_repository: 'GitHub Repository'
|
||||
- buy_now: 'Buy Now'
|
||||
- details: 'Details'
|
||||
featured:
|
||||
- pijack
|
||||
- ab-servo-pwm-pi-zero
|
||||
- microdot-phat
|
||||
- 4tronix-picon-zero
|
||||
- wifi-pants
|
||||
overlays:
|
||||
- ground
|
||||
- iface-dpi
|
||||
- iface-gpclk
|
||||
- i2c
|
||||
- iface-jtag
|
||||
- iface-1wire
|
||||
- iface-pcm
|
||||
- iface-sd
|
||||
- i2c
|
||||
- spi
|
||||
- uart
|
||||
- wiringpi
|
||||
- 4tronix-picon-zero
|
||||
- 4tronix-pistep2d
|
||||
- 4tronix-pistep2q
|
||||
- ab-1-wire-plus
|
||||
- ab-1-wire-zero
|
||||
- ab-adc-differential-pi
|
||||
|
@ -16,4 +16,4 @@ Hemos añadido un [explorador de placas!](https://github.com/Gadgetoid/Pinout.xy
|
||||
##Diagrama de asignación de pines
|
||||
Hemos creado un diagrama de asignación de pines para Raspberry Pi. Siéntete libre de imprimirlo, adjuntarlo, compartirlo o enlazarlo, ¡no te olvides de nombrarnos!
|
||||
|
||||
![pinout](https://github.com/Gadgetoid/Pinout.xyz/blob/master/resources/raspberry-pi-pinout.png)
|
||||
[![Graphical Raspberry Pi GPIO Pinout](/resources/raspberry-pi-pinout.png)](/resources/raspberry-pi-pinout.png)
|
||||
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
@ -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
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user