Josh’s tech art and sound blog


My code
May 4, 2006, 3:21 am
Filed under: Project Stuff

global [val0 val1 val2 val3 val4 val5]

to powerup
Write portb-ddr $00 ;set all of portb as outputs

loop[
setval0 (read-ad 0) ;sets value of photoresistor to variable valX
print val0
wait 2
setval1 (read-ad 1)
print val1
wait 2
setval2 (read-ad 2)
print val2
wait 2
setval3 (read-ad 3)
print val3
wait 2
setval4 (read-ad 4)
print val4
wait 2

if (val0 < 1020) ;if the value of the photoresistor is under a certain level ground the chip to set off speaker
[
setbit 0 portb
clearbit 0 portb
wait 1

]
if (val1 < 1020)
[
setbit 1 portb
clearbit 1 portb
wait 1
]
if (val2 < 1020)
[
setbit 2 portb
clearbit 2 portb
wait 1
]
if (val3 < 1020)
[
setbit 3 portb
clearbit 3 portb
wait 1
]
if (val4 < 1020)
[
clearbit 4 portb
wait 1
]
if (val4 < 1020) ;for dimmer activate chip for 30 seconds and then reverse polarity for 30 seconds then clear both bits
[
setbit 5 portb
clearbit 6 portb
wait 100
clearbit 5 portb
setbit 6 portb
wait 100
clearbit 6 portb
wait 1
]
]
end



Circuit Diagram
May 4, 2006, 3:13 am
Filed under: Project Stuff


Here is the circuit diagram.

circuit.JPG



OK I’m getting my butt kicked
April 28, 2006, 3:20 pm
Filed under: Project Stuff

Today was more hectic than yesterday! I got to shift space this morning at around 9 in the morning. I did many different coding tricks to try and see why my chip was not working the way it should have been. I would set the chip and then see if the bit had been set. It would show me that it was high and I even checked it with a multimeter and it showed high. The problem was that even though the pins came out right, the motor that is going to be turning the dimmer switch is not working. I worked on it all morning and finally had to leave for a while for another class. When I got back to shift space, Tom was there and I asked him for help. It turns out that I had pushed the breadboard far enough through that it was not making contact with the logo chip. After he solved the problem, that part of the code worked. However, I still had a little bit of problem with my code since I had changed it so much. Also, since we had to move the breadboard in order to fix that problem, it knocked out some of the resistors in our digital voice recorder breadboard. It seems, that at this point fixing one problem only creates 3 other problems. By this time, it was getting to be show time. So, I threw together something at least "seems" like it works.

other half.jpg



Feeling it!
April 26, 2006, 3:14 pm
Filed under: Project Stuff

Well aside from frying my finger with the soldering iron, almost electrocuting myself, and trying to cut my finger off, today went really well. After wiring the chip up initially with spare wires, I decided it would be a good idea to get to radio shack and wire them up with a wire kit to make it neater to work with. I encountered many problems today. I should say first that the digital voice recorders that we are using have a 5 volt offset voltage so when I don't capacitively couple them that is what makes the noise I referenced earlier. The good news to this is that with Tom's assistance, I figured out how to wire the amplifier up. The bad news is that the original board that the voice recorders were on no longer works so Ann and I "quickly" wired the voice recorders up on a bread board enabling only the extended play option. Thirdly, because of this extended wiring, we have not had any time to go through and troubleshoot the program so I am planning on going in tomorrow to try and make sure we have working code (crossing fingers). Finally, the values I am getting off the photo resistors is inconsistent with what I expected so I will be looking for a little help with that tomorrow.

The other half of the wall



Work has commenced
April 26, 2006, 3:12 pm
Filed under: Project Stuff

Istarted wiring the board today. I common grounded 1 wire on each of the speakers together. I did a similar thing on the photo resistors. I figure that this will give me that many fewer less wires to mess with.

wired.JPG



We’re moving!
April 24, 2006, 3:06 pm
Filed under: Project Stuff

We moved the wallboad down to shift space today. From what I can see, it looks great. Ann has put 2 pieces of plywood around the board to protect it while carrying it. This will also make it easier to wire things together. We should start working on that in a couple of days.

wall temp.jpg



Making the sun rise
April 22, 2006, 2:39 am
Filed under: Project Stuff

I got some really good help from Tom! He's the man! He has found a motor that will go around the dimmer switch and turn it both ways depending on where the voltage and grounds are set. With a little glue and a little luck who knows what might happen! Here is a picture of what Ann has complete so far….

progress.jpg



Amplifier pamplifier
April 19, 2006, 2:37 am
Filed under: Project Stuff

I went to Radio Shack and bought the rest of my amplifier chips. I think we are going to downsize so that we don't have so many wires streaming from the chip. Maybe 6 or 7 speakers would be just as good.



Here’s to Progress
April 17, 2006, 2:36 am
Filed under: Project Stuff

I think Ann has decided that she wants to have one cutout for one side of the doorway while she wants a complete wall on the other. She has these really cute dogs that are made the same way that the wall is made. She would like a bench to put there too to make it look more "garden" like.

dog1.jpg



How irritating!
April 14, 2006, 2:29 am
Filed under: Project Stuff

I've been working on this 386n audio amplifier and can't find a way to make it work consistently. I have looked up several different ways to hook it up and it seems like everything is hooked up correctly. However, there is nothing but a buzz coming out of the speaker. I guess a buzz is better than nothing, but it is still a long way away from what I want to use.