The week at a glance:
This week has been filled with challenges for Grad School and at work. Students always get crazy the week before the holiday, and this week was no exception! By the time I made it home at 7pm each night I was so exhausted that I would grab a quick snack and then crawl into bed. Needless to say I did not get any work done for our assignments this week until Friday night. We had two projects to do this week: design a Maker Space and build a "Dice" LED circuit.
Maker Space Challenge
Last week we turned in information on what we envisioned for our dream Maker Space. I am not very good at drawing, so I searched for hours until I found a picture that came closest to what I want. It was very well designed, but I thought there should be a few changes to it. This week we were assigned to learn SketchUp to make our floorplan for the Maker Space. Even though I have experience with CAD, SketchUp is very different from the Autodesk Inventor that I am accustomed to using. I spent several hours watching YouTube videos on how to use SketchUp, but even after that I had a hard time doing the assignment. It took me so long to do just the building floor plan that I had to stop to work on the other assignment for this week. I was not able to draw any of the furniture, and I also did not figure out how to draw doors for the openings. I specifically made the main entrance and one of the shop entrances large enough to accommodate large equipment. (Small garage door size.) All doors meet the minimum ADA requirement for wheel chair accessibility, and many are larger to allow for larger furniture and/or storage cabinets. Hopefully from seeing the original picture I modeled my design after you will be able to visualize my intentions.
| SketchUp Floor Plan for Dream Maker Space |
| Dream Maker Space Example URL for Picture |
LED DICE
| LED Dice Schematic Instructables Web Site |
| Color Circuit Diagram for LED Dice Circuitlib Web Site |
![]() |
| Assembled Circuit |
| All 6 Dice Configurations |
I took pictures with the lights on in the room and with them off so that I could see the difference on how the LEDs show up. I don't think my phone takes very good pictures, but that is all I have to work with. You can definitely see why the circuit uses 7 LEDs in an H pattern. I wish my kit would have had 7 Red LEDs, but it didn't. So I used a Blue LED in the center position.
Code for Dice LED Circuit
//Simple LED Dice based on Arduino /*circuitlib.com*/ //By G. Adam int i; int button=5; int A=6; int B=7; int C=8; int D=9; int E=10; int F=11; int G=12; // the setup function runs once when you press reset or power the board void setup() { // initialize digital IO direction pinMode(button, INPUT_PULLUP); pinMode(A, OUTPUT); pinMode(B, OUTPUT); pinMode(C, OUTPUT); pinMode(D, OUTPUT); pinMode(E, OUTPUT); pinMode(F, OUTPUT); pinMode(G, OUTPUT); // initialize counter value i=1; } // Turn on LEDs for mode 6 void turn_on_6 () { digitalWrite(A,HIGH); digitalWrite(B,HIGH); digitalWrite(C,HIGH); digitalWrite(D,HIGH); digitalWrite(E,HIGH); digitalWrite(F,HIGH); } // Turn on LEDs for mode 5 void turn_on_5 () { digitalWrite(A,HIGH); digitalWrite(C,HIGH); digitalWrite(D,HIGH); digitalWrite(F,HIGH); digitalWrite(G,HIGH); } // Turn on LEDs for mode 4 void turn_on_4 () { digitalWrite(A,HIGH); digitalWrite(F,HIGH); digitalWrite(D,HIGH); digitalWrite(C,HIGH); } // Turn on LEDs for mode 3 void turn_on_3 () { digitalWrite(C,HIGH); digitalWrite(G,HIGH); digitalWrite(F,HIGH); } // Turn on LEDs for mode 2 void turn_on_2 () { digitalWrite(F,HIGH); digitalWrite(C,HIGH); } // Turn on LEDs for mode 1 void turn_on_1 () { digitalWrite(G,HIGH); } // Turn off all LEDs void turn_off_all () { digitalWrite(A,LOW); digitalWrite(B,LOW); digitalWrite(C,LOW); digitalWrite(D,LOW); digitalWrite(E,LOW); digitalWrite(F,LOW); digitalWrite(G,LOW); } // the loop function runs over and over again forever void loop() { bool state; state=digitalRead(button); if (state==LOW) // Button is pressed? { turn_off_all(); if (i==1) turn_on_1(); if (i==2) turn_on_2(); if (i==3) turn_on_3(); if (i==4) turn_on_4(); if (i==5) turn_on_5(); if (i==6) turn_on_6(); } i=i+1; if (i>6) i=1; delay(15); }
My video did not turn out as well as I would have liked. There are lose connections on the breadboard and when I would push the button switch I would cause wires to lose connection. I was unable to get the circuit to cycle through all 6 numbers.
![]() |
Dice Circuit Video |
Reflections
This is the second time I have written the reflection for this
week’s challenges. I usually write directly
on the blog post compose screen. For
some reason when I logged out to see if my hyperlinks worked everything I wrote
for the Reflections section was lost. I
don’t know if it was caused by a glitch with the internet or by something I did
wrong. So here I go again!
The Dice LED circuit was the most difficult assembly I have encountered during this class. The circuit needing to be in an H configuration required the LEDs be placed closely together. This made it hard to insert the components and jumper wires by hand, so I had to use needle nose pliers for every lead. Additionally, the breadboard has loose ports on it which caused connection errors. I had to keep tension on the wires by pulling the Arduino at an angle so the current would flow. During the video I must have jarred loose wiring when pushing the button switch, which caused two of the numbers in the sequence not to work. I was able to get regular pictures of each number working. And since Math is my weakest subject, I never figured out how to do the Distribution of Rolls graph. I tried to find information on the internet for how to do it but did not have any luck. I assume it is a statistical function, but I am not good at Statistics.
Overall, I am pleased that I got the circuit to eventually work. I tried printing the code and looking at that to type it myself, but I obviously can’t do that well either because I ended up with too many errors to figure out. I ended up downloading the code from the internet. At least it did work using that code. Praying I will eventually learn some coding!


No comments:
Post a Comment