This Circuit will introduce the Buzzer to our electronics toolkit and teach us how to effectively control its volume. A new programming concept called an 'array' is used in this circuit. An array is a 1-dimensional matrix that stores a list of values of the same datatype. Following along with the Sparkfun code for this Circuit will allow us to understand how arrays are declared and accessed. We are also introduced to a 'for loop' for the first time. A 'for loop' is a good way of counting through an array and is often used for sorting or scrolling. A lower bound is set, an upper bound is set and then an increment and direction of cycling are decided upon. They will be revisited in circuit 2C to control numerous LED's that have their pins stored in an array.
The full guide: [ Ссылка ]
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Sparkfun Inventors Kit /catalog/product/view/sku/KIT-14265
Arduino [ Ссылка ]
Sparkfun [ Ссылка ]
Adafruit [ Ссылка ]
Pololu [ Ссылка ]
DFRobot [ Ссылка ]
Ещё видео!