News for hackers. Stuff that matters.
Re:Building a Weather Station by dylan604 on Friday May 19, 2023 @10:25PM (#36008856)
"There are eight basic directions: North, south, east, west, northeast, southeast, southwest, and northwest. One switch for each in the weather vane, but only two wires for all of them. But how?"

One of the first projects that I took on did a similar thing where there were 4 buttons all connected to one pin on an Arduino. Having next to 0 official EE schooling, this technique impressed me with its simplicity. Just need to ensure that the resistance of each one allows for space between the +/- tolerances of an analog signal. It's also one of those little "tricks" that makes me want to keep finding other new things and keep going.

There are no comments on this comment yet.