Skip to main content

Interactive Circuit: LED Panner

 MADT 304 week 2:


In this week we where tasked with wiring up an interactive circuit that can control multiple LEDs. 

Class discussion also introduced the use of "if" statements which allow the use of Boolean logical  operators(>/</>=/<=/==/&&) in order to filter data flow or command events.



Using a Potentiometer and mapping out thresholds with if statements we can pan LEDs. 






Code :
                                            



I noticed something unusual if the " digitalWrite(pin#,LOW); " are all setup on an "else" statement. We can still pan the LED lights but somehow full power is only enabled on the last light in the circuit. 

must be a syntax issue but it sounds Logical to shutdown all lights when parameters aren't met. (see video below and code).



 


                                          


I can see this type of circuit to be utilized for controlling many things, Connecting an analog variable switch(potentiometer) allows the user to physically interact with the electric circuit. Controlling not just the LED lights but anything wired into the Arduino. 




Comments

Popular posts from this blog

OBDF310 Milestone Project 1: Stacked Slices

         My current sliced model for this weeks blogpost. I wanted to test modelling an object in Rhino first and using the mesh as the starting point for the contour slices in grass hopper. I ended up experimenting on different extrusion depths and the vector direction for the slices.  Modularity of grasshopper allows for rapid iteration and gives me a couple of choices to pick from. I decided on the vector slices along the y-axis which gave me a very simplified version of the bird but still recognizable.  Rough model doesn't need to be detailed because the contour slices simplifies everything else.

Algorithmic Surface Modelling

  This week surface morph animation and some extra stuff.  Starting out with a divided curve I was able to use it determine points for circles and then using said circles to loft a structure. I then utilized the random numbers to offset the radius for each section in the loft and by utilizing "replace item" I was able to move a circle around the geometry. To show this variating animation without changing the seed values in the random numbers node. Bonus: Sending Grasshopper data via OSC/UPD to other programs I really wanted to use the program in conjunction with my main creative tools just to give me more reasoning to use grass hopper. You can utilize geometry in grass hopper and use them on other programs like MAX msp and Touch Designer for live visual effects or any other use cases. But as a caution try to re-mesh the models or simplify,  because grasshopper uses a lot of data and sending them live can cause it to crash if the models are too complicated.  Geometry used to C

OBDF 310 Milestone: Stacked Slices Laser cut Final

  This week in my Object design class, we were able to finalize out designs for laser cutting slices. My penguin model has gone through a couple of design adjustments mostly to have a cleaner and readable structure. simplifying the model makes it easier to distinguish, spherical curves on the original brep reference doesn't seem to provide appealing slices so I decided to go with a more geometric form. Once processed through grass hopper I didn't have a need to include wings because the tapered form still translates to something that appears like a wing.   On the left are the initial slices, the right is the cleaner side decided to mirror to create a more readable model. Above is the layout for laser cutting, I ended up layering the cut-outs manually because the grid method shown in last weeks class was quite troublesome. I just couldn't figure out how to pull of the grid placement on vector direction and didn't want to spend too much time confusing myself. (The penguin