Tapatalk

Talking to the Hat

Talking to the Hat

5

PostOct 11, 2016#1

I've just received my pre-order hat today
I intend to try it out at the weekend
I'm assuming I can use the 'serial' method you kindly posted in the

Whisper Node -> Talk2 Contact: Sensor Nodes + RPI Base Station

1885
1885

PostOct 12, 2016#2

Hi,

The "serial" method mentioned on the other post was about connecting a Whisper Node to a RPI via UART. To do that, there's no need to use a RPI Talking HAT.

The Talking HAT has a different structure. The main idea is to CAN Bus support to the RPI, but it also has a STM32 MCU connected to a RFM69, to the CAN Bus and to the RPI itself via UART.

Below you can see the components diagram for the HAT from https://bitbucket.org/talk2/raspberry-pi-hat/overview:

Code: Select all

( < > )             
   ║                
   ║┌───────┐         ┌───────────────┐               ┌──────────┐
   ║│       │         │               │               │          │
   ╚╡ RFM69 ╞══ SPI ══╡               │   (serial)    │          │
    │       │         │      MCU      │<--- TX/RX --->│   RPI    │
    └───────┘         │    [STM32]    │<--- RX/TX --->│          │           ┌────────┐
    ┌───────┐         │               │               │          ╞═══ I²C ═══╡ EEPROM │
    │ FLASH ╞══ SPI ══╡               │               │          │           └────────┘
    └───────┘         └──────┬┬───────┘               └────┬┬────┘
                             ││                            ││
                             ││                            ││
                         ┌───┴┴───┐                    ┌───┴┴───┐
                         │        │<------ CAN_H ----->│        │
                         │  CAN   │                    │  CAN   │
                         │        │<------ CAN_L ----->│        │
                         └────────┘                    └────────┘

As you can see the RPI can "communicate" with the STM32 via UART and/or via CAN Bus. If you never worked with a STM32 MCU before, I strongly recommend having a look on the CubeMX for project configuration. Regarding the IDE, there are a few free options like the Atollic TrueStudio and the SW4STM32. At the same time we're working to get a few code samples, libraries and a "RFM69->CAN Bus" router into our public code repository.