• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Time Measurements with Neuron

    UniPi Neuron Series
    2
    2
    836
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      knebb last edited by

      Hi all,

      is it possible to measure timings within Neuron?

      I am thinking of using a HC-SR04 (see here) to measure distances. I got it working on a default RasPi but I would prefer to use it with my Neuron.

      I would need a 5V power source and use one DOutput (for trigger) and one DInput.

      For calculation about the distance I would need to measure the time between triggerin on DOut and the change on DIn to HIGH.

      Is this possible on the Neuron? With what piece of software? Python? C (can I use SysFS for this?)?

      1 Reply Last reply Reply Quote 0
      • T
        TomasKnot last edited by TomasKnot

        Unfortunately the timing is too quick to be done by anything but a direct line to the CPU (Raspberry Pi/Arduino GPIOs are such a line to the CPU, which is why it works at all). As such it's not possible to use with Neuron or UniPi 1.1 out of the box. With some warranty-voiding modifications it may be possible to connect the device to an unused RPi GPIO, but I cannot recommend this action unless you are fully comfortable taking the risk and voiding the warranty. I also cannot provide instructions on doing so.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post