Extension Board PDF
Extension Board PDF
Extension Board PDF
Main Features
User Manual
Table of Contents
1.
Technical Specifications................................................................................................................... 2
2.
3.
3.2.
3.3.
3.4.
4.
4.2.
4.3.
Joystick .................................................................................................................................... 6
4.4.
4.5.
HWClock .................................................................................................................................. 7
5.
1. Technical Specifications
Size: 35,2 x 56mm
RS-485
o up to 230.400 baud
o pluggable
screw
terminal
connector (A, B, GND)
RS-232
o No hardware handshake
o up to 115.200 baud
o pluggable
screw
terminal
connector (RX, TX, GND)
Real Time Clock
o CR2032 RTC backup battery
included
o powers the clock for approximately
10 years
5 Inputs
o connected to onboard joystick (4
way + push)
o 5V tolerant
o 2mm pitch external connector, not
populated
amescon
2 Outputs
o 5V, 100mA max. each
o 5V relays can be connected without
additional circuitry due to onboard
protection diodes
o 2mm pitch connector, not populated
SPI Connector
o 2mm pitch connector, not populated
2 I2C Connectors
Power Connector
o pluggable screw terminal connector
(+, -)
o either powers the Raspberry Pi and
RasPiComm (5V, 1.5A max)
o or is a power output when powered
over USB
RasPiComm Power Consumption
o max . 10mA (outputs off)
o max. 210mA (outputs on and
maximum rating drawn)
2
User Manual
2. Technical Drawing
amescon
User Manual
Revision 2 can be identified by the mounting hole on the top right corner.
amescon
User Manual
Choose revision according to your Raspberry Pi (switch revisions with the 'c'-button)
Activate installation script (with the 'i'-button)
This script will install i2c-tools and permanently set up the following devices:
o Joystick
o RS-485
o RS-232
o Output (LEDs)
o HWClock
Confirm driver installation with 'y'.
For the RS-232 to work, you'll need to restart your Raspberry Pi. All other devices are ready
to go without a restart.
While the help-parameters do not need root access, most others will. For example, the superuserelevated command
sudo ./rpc.setup.sh --remove-autostart
amescon
User Manual
By default the RS-232 port is used by the Raspberry Pi's startup routine and needs to be reconfigured
for use. The setup script does so automatically. Please note that a restart is required, after which you
can use standard libraries to access the serial port. The device name is:
/dev/ttyAMA0
Our Sample Applications can be adapted for use with the RS-232 port by replacing the RS-485 name
/dev/ttyRPC0 by its RS-232 counterpart /dev/ttyAMA0.
4.3. Joystick
The joystick is mapped to the following GPIOs:
1.
2.
3.
4.
5.
You can use linux standard libraries to access the joystick in the same way as the serial port.
Example code for C or C++:
int fd = open("/sys/class/gpio/gpio22/value", O_RDONLY); ...
amescon
4.5. HWClock
User Manual
The setup-script will synchronize your system time with the HWClock every time your Raspberry Pi is
restarted.
This command will synchronize your HWClock with the system time:
sudo hwclock --systohc
This command will manually synchronize your system time with the HWclock:
sudo hwclock --hctosys
5. Additional Links
Should you require further information or are looking for project code, check out the following links:
amescon