Sferalabs Strato Pi CAN Скачать руководство пользователя страница 23

Buzzer

Strato Pi CAN has an on-board buzzer that can be controlled using GPIO20. Simply set 
GPIO20 to high to emit a continuous sound, and back to low to stop. The buzzer is not 
intended to emit sound indefinitely and could be damaged doing so.

The Strato Pi utility has several commands to control the buzzer.

Buzzer on continuously:

sudo strato beep on

 

Buzzer off:

sudo strato beep off

 

Buzzer on for 500 milliseconds:

sudo strato beep 500

 

Buzzer on for 500 milliseconds, followed by 100 milliseconds pause, repeated three times:

sudo strato beep 500 100 3 

Relay

Strato Pi CAN has an on-board relay that can be controlled using GPIO26. Simply set 
GPIO26 to high to close the NO contact, and to low to open it.

The Strato Pi CAN utility implements a command to control the relay.

Relay on:

sudo strato relay on

 

Relay off:

sudo strato relay off 

Hardware watchdog

Strato Pi CAN implements a dedicated hardware watchdog circuit that can be used to 
perform a full power cycle of the Raspberry Pi.

Being controlled by Raspberry Pi’s GPIO pins, it is extremely easy to control watchdog 
operation using simple custom scripts in your application.

The watchdog is normally disabled. To enable it, set GPIO6 pin to high. While GPIO6 is 
high, the Strato Pi CAN micro-controller will watch for state changes of the GPIO5 
heartbeat pin. You should ensure that GPIO5 flips its state between high and low faster 
than every 60 seconds.

If the Strato Pi CAN micro-controller doesn’t see GPIO5 changing state for more than 60 
seconds, it will initiate a shutdown procedure, rising the GPIO12 timeout pin to high, to 
signal your code that a watchdog timeout has occurred.

22

Strato Pi CAN User Guide

Содержание Strato Pi CAN

Страница 1: ...Strato Pi CAN User Guide July 2018 Revision 006 SPBC11X Strato Pi CAN board SPMC11X Strato Pi CAN server with Raspberry Pi 3 Model B SPMC11XP Strato Pi CAN server with Raspberry Pi 3 Model B...

Страница 2: ...r supply 12 Relay output 14 Dedicated GPIO pins 14 Software installation and configuration 15 Strato Pi CAN utility 15 Real Time Clock software 15 Testing the Real Time Clock 16 CAN Bus 17 Disabling B...

Страница 3: ...p 28 Conformity Information 29 EU 29 USA 29 CANADA 29 AUSTRALIA NEW ZEALAND 30 Compliance information for Raspberry Pi 3 Model B 30 EU 30 USA 30 CANADA 30 Compliance information for Raspberry Pi 3 Mod...

Страница 4: ...and weapons systems Strato is neither designed nor intended for use in critical military or aerospace applications or environments Customer acknowledges and agrees that any such use of Strato Pi CAN i...

Страница 5: ...oduct Hazard levels This manual contains information you must observe to ensure your personal safety and prevent damage to property Safety information in this manual are highlighted by the safety symb...

Страница 6: ...led and operated properly Follow all applicable electrical safety standards guidelines specifications and regulations for installation wiring and operations of this product The Raspberry Pi board coul...

Страница 7: ...ry must be replaced only with an identical battery See the Replacing the RTC backup battery section for instructions Do not throw lithium batteries into fire do not solder on the cell body do not rech...

Страница 8: ...and service continuity are key requirements It is available as a bare board or fully assembled unit including a Raspberry Pi 3 Model B or B in a standard DIN rail case The information contained in th...

Страница 9: ...oard for acoustic feedback hardware watchdog implemented in the Strato Pi board fully independent from the Raspberry Pi controlled via the I O pins of the Raspberry Pi board on board LEDs for power su...

Страница 10: ...ogether ensuring that no conductive part of one board touches any part of the other board Be particularly careful to ensure there is enough clearance between the Ethernet and USB connectors and the bo...

Страница 11: ...osion of the batteries and or release of harmful substances Worn out or defective batteries can compromise the function of this product KEEP OUT OF REACH OF CHILDREN Swallowing may lead to serious inj...

Страница 12: ...gative terminals 5 Unsolder the terminals tips and clean the circuit board holes to prepare for the installation of the new battery 6 Insert the new battery in the circuit board holes Respect the batt...

Страница 13: ...CAN board is used never connect the Raspberry Pi micro USB power plug The Strato Pi CAN power supply stage is optimised to deliver up to 2 5A at 5V to the Raspberry Pi Because Strato Pi CAN has two p...

Страница 14: ...STRATO PI CAN POWER SUPPLY STAGE TYPICAL IN OUT VOLTAGE AND CURRENT 13 Strato Pi CAN User Guide...

Страница 15: ...ime clock GPIO3 SCL I2C SCL line for the real time clock GPIO14 TXD out RS 485 TX line GPIO15 RXD in RS 485 RX line GPIO8 SPI_CE0 out SPI chip select line to the CAN Controller GPIO9 SPI_MISO in SPI d...

Страница 16: ...the Strato Pi utility without arguments to print its options strato Usage strato beep on off length_millis length_millis pause_millis repeats strato watchdog enable disable heartbeat timeout strato s...

Страница 17: ...pdate the hardware clock after the last reboot if its internal registers contained invalid values If the RTC still doesn t work you should check if the Pi sees the RTC chip on the I2C bus Run these tw...

Страница 18: ...your Raspberry Pi Disabling Bluetooth WiFi and the serial console On Raspberry Pi 3 the main UART is used for Bluetooth and the TX RX pins on the GPIO connector are controlled by a limited function M...

Страница 19: ...the ttyAMA0 console service sudo systemctl disable serial getty ttyAMA0 service Edit the boot cmdline txt file and delete the serial console configuration console serial0 115200 18 Strato Pi CAN User...

Страница 20: ...main power supply with a high efficiency DC DC converter This configuration should prevent ground loops between devices connected via the RS 485 lines The RS 485 TX RX switching is implemented automat...

Страница 21: ...ines are available on the terminal block The CAN transceiver s TX and RX lines are isolated from the CAN controller with dedicated opto couplers The CAN transceiver is also galvanically isolated from...

Страница 22: ...xample at 500 kbps sudo ip link set can0 up type can bitrate 500000 You can now check that the CAN interface is up and send or receive data sudo ifconfig can0 Link encap UNSPEC HWaddr 00 00 00 00 00 0...

Страница 23: ...plements a command to control the relay Relay on sudo strato relay on Relay off sudo strato relay off Hardware watchdog Strato Pi CAN implements a dedicated hardware watchdog circuit that can be used...

Страница 24: ...t timeout The Strato Pi CAN utility can be used to control the watchdog from your custom scripts Enable the watchdog sudo strato watchdog enable Disable the watchdog sudo strato watchdog disable Send...

Страница 25: ...Block diagram STRATO PI CAN BLOCK DIAGRAM 24 Strato Pi CAN User Guide...

Страница 26: ...ons Raspberry platform compatibility Pi 3 Model B Pi 3 Model B Pi 2 Model B Serial communication ports RS 485 Half Duplex with automatic data direction management Controller Area Network CAN Maximum s...

Страница 27: ...batteries Expected battery life without main power supply 3 years Expected battery life with main power supply 10 years Housing standard 4M for DIN rail Operating temperature 0 50 C Storage temperatur...

Страница 28: ...Dimensions DIMENSIONS mm 27 Strato Pi CAN User Guide...

Страница 29: ...ccess to the Strato Pi CAN circuit board Always remove the battery before disposing of this product Installation and use restrictions Standards and regulations The design and the setting up of electri...

Страница 30: ...cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the inte...

Страница 31: ...mitter product guidelines This WiFi DTS device has 20 MHz bandwidth mode CANADA Raspberry Pi 3 Model B IC CERTIFICATION No 20953 RPI32 This device complies with Industry Canada license exempt RSS stan...

Страница 32: ...Raspberry Pi 3 Model B IC CERTIFICATION No 20953 RPI3P This device complies with Industry Canada license exempt RSS standard s Operation is subject to the following two conditions 1 this device may no...

Страница 33: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Sfera Labs SPBC11X SPMC11X SPMC11XP...

Отзывы: