Shop OBEX P1 Docs P2 Docs Learn Events
Hitachi H48C 3-Axis Accelerometer Help — Parallax Forums

Hitachi H48C 3-Axis Accelerometer Help

florezescobarflorezescobar Posts: 2
edited 2010-10-05 17:26 in Accessories
Hello everybody. I'm struggling with the communication between the Hitachi H48C 3-Axis Accelerometer and a PIC16F887 using SPI protocol.
The problems begin with the pins connection, because SPI protocol uses separate SDO and SDI pins, but this module has only one DIO pin. How should I connect this?

Although is not a Parallax product, if someone can help me with the SPI configuration for the PIC16F887 in C, I'd appreciate.

Comments

  • dandreaedandreae Posts: 1,375
    edited 2010-10-05 13:33
    Try this schematic (attached) and tell me if it helps?

    Dave
  • florezescobarflorezescobar Posts: 2
    edited 2010-10-05 17:26
    Try this schematic (attached) and tell me if it helps?

    Dave

    Hi Dave, thanks for your reply. I've just got the accelerometer working :). The connection can be made AccDIO-McuDI, and a 10k resistor between this connection and GND. My others problems were in the code.

    Thanks again!
Sign In or Register to comment.