![]() ![]() ![]() Given the limited number of pins on an Arduino this seems wasteful. }This could be simplified slightly by not using the Arduino to set Y and just using A directly, but it would still require three pins to read A and B and generate Z. Now this would be simple to implement using an Arduino, in fact you would just need the following sketch.ĭigitalWrite(12, digitalRead(8) | digitalread(9)) Now if you look closely at this table then you will see that Y is the same as A, while Z is simply A or B. ![]() As an example, I wanted to implement the following logic table So I've been playing around with a few more electronic circuits over the last week or so and found myself wanting to move some of the simple logic processing off the Arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |