Time Measurements with Neuron
-
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?)?
-
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login