Page 1
JOYPI EXPANSION KIT RB-JoyPi-Addon 1. GENERAL INFORMATION Dear Customer, thank you for choosing our product. In the below, we will show you what you need to know about commissioning and use of the product. If you encounter any unexpected problems during use, please feel free to contact us.
Page 2
JoyPi. Finally, you only need to connect the GPIO strip of the JoyPi, with the GPIO strip of the port doubler with the supplied cable. www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Joy-Pi.zip Also, if you are using your own image, you need to enable I2C. To do this, enter the following command in the terminal: sudo raspi-config Now go to 3Interfacing Options and enable I5 I2C. www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 4
Since all pins of the Raspberry Pi are used in the JoyPi, you can only use the pins that you can disconnect using the two switching units of the Joy- Pi. These are highlighted in the diagram above. In addition, pins 3 and 5 can be used for I2C communication. www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Please note that the voltage on the input channels of the ADC must not exceed 3.3 V. The further pin assignment can be found in the table below. Raspberry Pi 3.3 V (Pin 1) GND (Pin 6) SCL (Pin 5) SDA (Pin 3) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 6
= AnalogIn(ads, ADS.P3) while True: print("channel 0: ","{:>5}\t{:>5.3f}".format(chan0.value, chan0.voltage)) print("channel 1: ","{:>5}\t{:>5.3f}".format(chan1.value, chan1.voltage)) print("channel 2: ","{:>5}\t{:>5.3f}".format(chan2.value, chan2.voltage)) print("channel 3: ","{:>5}\t{:>5.3f}".format(chan3.value, chan3.voltage)) print("---------------------------------------------------") time.sleep(1) You can run the file with the following command: python3 /home/pi/Desktop/Joy-Pi/Extensions/adc.py www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 7
0V and the supply voltage. Sliding Rotary Raspberry Pi Raspberry Pi potentiometer potentiometer 3.3 V (Pin 1) GND (Pin 6) 3.3 V (Pin 1) SCL (Pin 5) GND (Pin 6) SDA (Pin 3) SCL (Pin 5) SDA (Pin 3) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 8
> chan0.voltage max_limit < chan0.voltage: print("Potentiometer Voltage: ","{:>5.3f}".format(chan0.voltage),"V / Limit reached!") print("---------------------------------------------------") time.sleep(1) else: print("Potentiometer Voltage: ","{:>5.3f}".format(chan0.voltage),"V / Limit not reached!") print("---------------------------------------------------") time.sleep(1) You can run the file with the following command: python3 /home/pi/Desktop/Joy-Pi/Extensions/poti.py www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
For the use of the magnetic sensor you additionally need the ADC. The pin assignment can be found in the table below. Magnetic Raspberry Pi sensor 3.3 V (Pin 1) GPIO 5 (Pin 29) SCL (Pin 5) SDA (Pin 3) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 10
("Analog Voltage:", analog,"V, ","Limit not reached") else: print ("Analog Voltage:", analog, "V, ", "Limit reached") print ("---------------------------------------") # Reset + Delay button_pressed = False time.sleep(delayTime) You can run the file with the following command: python3 /home/pi/Desktop/Joy-Pi/Extensions/magnet.py www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 11
To use the joystick, you also need the ADC. The pin assignment can be found in the table below. Joystick Raspberry Pi GND (Pin 6) 3.3 V (Pin 1) GPIO 6 (Pin 31) SCL (Pin 5) SDA (Pin 3) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 12
It also indicates whether the joystick is pressed or not. python3 /home/pi/Desktop/Joy-Pi/Extensions/joystick.py You can run the file with the following command: If you run the program over an SSH connection use the following com- mand: sudo -E python3 /home/pi/Desktop/Joy-Pi/Extensions/joystick.py www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 13
ADC, the I2C protocol. The pin assignment can be found in the table below. BMP280 Raspberry Pi 3.3 V (Pin 1) 3.3 V (Pin 1) SDA (Pin 3) SCL (Pin 5) 3.3 V (Pin 1) GND (Pin 6) www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
Page 14
# Change this value so that it corresponds to the air pressure (hPa) at sea level at your location. bmp280.sea_level_pressure = 1013.25 while True: print("\nTemperature: %0.1f C" % bmp280.temperature) print("Pressure: %0.1f hPa" % bmp280.pressure) print("Altitude = %0.2f meters" % bmp280.altitude) time.sleep(2) You can run the file with the following command: python3 /home/pi/Desktop/Joy-Pi/Extensions/bmp.py www.joy-it.net Pascalstr. 8 47506 Neukirchen-Vluyn...
SIMAC Electronics GmbH, Pascalstr. 8, D-47506 Neukirchen-Vluyn Possibility return in your area: We will send you a parcel stamp with which you can return the device to us free of charge. Please contact us by email at Service@joy-it.net or by tele- phone. Packaging information: If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.
Need help?
Do you have a question about the RB-JoyPi-Addon and is the answer not in the manual?
Questions and answers