Go Down

Topic: Hall US1881 sensor issue (Read 245 times) previous topic - next topic

martinhagreen

Yep, I´m reading all of them at the same time, to know every moment wich one is the last switched on

cjdelphi

#6
Jun 27, 2014, 09:30 am Last Edit: Jun 27, 2014, 09:34 am by cjdelphi Reason: 1

Yep, I´m reading all of them at the same time, to know every moment wich one is the last switched on


I guess you're stuck then..  use a parallel mode on a shiftregister.... as suggested, that way you read it all in "1 go" in reality, it'll be 1 bit a time as it reads in the data, but to you, it will be instant.

I like the idea of a mux, because you get to control which sensors you access, and as far as the end user is concerned, it's pretty much instant to your eye (even with a for loop)


tmd3

The schematic shows analog input A0 connected to what appears to be a Hall effect device, and digital pin 13 connected to what appears to be an anemometer. 

I don't know of any reason that A0 shouldn't work as a digital input indefinitely.  To test your theory that something fails with pin A0, I'd recommend swapping those two devices - connect the Hall sensor to digital pin 13, and connect the anemometer to A0.  Naturally, you'll have to address that change in your code.  Then observe which one, if either, fails. 

Go Up