User Tools

Site Tools


buspirate

Using Bus Pirate 5 REV10 with Oil Pressure and Water Temperature Sensors

Hardware Setup

  • Sensor Connection:
    1. Oil Pressure Sensor: Connect the sensor's output to one of the Bus Pirate's I/O pins (1-8). Ensure compatibility with voltage output. Use a voltage divider if necessary for higher voltage outputs.
    2. Water Temperature Sensor:
      • If analog, connect to an I/O pin.
      • If digital (e.g., DS18B20), connect to the 1-Wire data pin.
  • Power Supply:
    1. Utilize the Bus Pirate's programmable power supply (1-5V) for sensor power. Ensure not to exceed sensor voltage limits.
  • Ground Connection:
    1. Connect sensor grounds to Bus Pirate ground.

Software Configuration

  • Connect Bus Pirate to PC:
    1. Use a USB-C cable and open a terminal program (e.g., PuTTY) at 115200 bps.
  • Mode Selection:
    1. Start in “HiZ” mode. Type 'm' for mode selection:
      • For analog sensors, remain in HiZ for ADC use.
      • For digital sensors like DS18B20, select “1-WIRE”.
  • ADC Setup for Analog Sensors:
    1. Use 'd' for a single voltage reading or 'D' for continuous on your chosen pin (e.g., 'd1' for pin 1).
  • Reading Data:
    1. Oil Pressure:
      • Read voltage, convert to pressure using sensor specs.
    2. Water Temperature:
      • If analog, read voltage.
      • If digital, follow protocol for data acquisition.
  • Calibration and Conversion:
    1. Calibrate readings. Convert voltage to physical units based on sensor characteristics.
  • Data Logging or Transmission:
    1. Manually log or script data transmission to Signal K server. Use Python with 'pyBusPirate' for automation.

Considerations

  • Accuracy: Check if 12-bit ADC resolution is adequate for your needs.
  • Voltage Levels: Ensure sensor outputs match Bus Pirate capabilities or use protective measures.
  • Software: Might need custom code for data handling and server integration.

Note: Specific steps might differ based on sensor types and models.

buspirate.txt · Last modified: 2025/01/09 18:04 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki