Wack a Mole

by krzysztof0130 in Workshop > Tools

320 Views, 0 Favorites, 0 Comments

Wack a Mole

0.jpg

Supplies:

材料:

One Arduino Leonardo board

一塊Arduino Leonardo板

Breadboard, for connecting wires and resistors.

麵包板,用於連接電線和電阻器。

Four buttons

四個按鈕

Four LED light bulbs (color can be random)

四個LED燈泡(顏色可以是隨機的)

Four plastic covers (cover LED light bulbs)

四個塑料蓋(蓋上LED燈泡)

Resistors for the buttons and the LEDs. LED resistor color scheme: gray, red, black, gold. Button resistor color scheme: brown, black, indigo, pink. (Each 4)

按鈕和LED的電阻。 LED電阻器配色方案:灰色,紅色,黑色,金色。按鈕電阻器配色方案:棕色,黑色,靛藍,粉紅色。 (每個4個)

Jumper wires (optional)

跳線(自選)

A cardboard box (30*40*10)

紙箱(30 * 40 * 10)

knives

tape

膠帶

color pen (red and blue)

色筆(紅和藍)

Arduino
IMG_1785.jpg

Step 2: Connecting Wires and Uploading the Code

步驟2:連接電線並上傳代碼

The upper image shows out how can you connect the wire, bubble, and button

上圖顯示要如何連接導線,燈泡和按鈕

The upper video show how it works and how you play.

上方的視頻顯示了它的工作方式以及播放方式。

The below website shows the code of Wack a mole machine in Ardunio

下面的網站顯示了Ardunio中的打地鼠機器的代碼

https://create.arduino.cc/editor/krzysztof0130/1c7...

Source

來源

https://www.instructables.com/id/The-Iconic-Whack-...

Changes

改變

I use paper boxes instead of cardboard

我是使用紙盒而非紙板

I changed from the original eight LED lights to four

我從原本複雜的八顆LED燈改成四顆

I moved the button closer and hit the button with my finger instead of the hammer

我把按鈕位置移近改用手指敲打按鈕而非錘子

I use a more colorful and different color in LED light instead of one simple LED light

我在LED燈中使用了更加多彩和不同的顏色,而不是一種簡單的LED燈