Gramps
Senior Member
All wired, tested, and ready for a Picaxe, ordered May 5th and still not here!
Attachments
-
711.8 KB Views: 18
Who did you order from ?All wired, tested, and ready for a Picaxe, ordered May 5th and still not here!
Let's say that it's not the way I would do it.What if we glued one of these little guys to each of the hammers? Would that trigger the pin?
As it turned out, I received the non-i2c version of this the day before you posted:What if we glued one of these little guys to each of the hammers? Would that trigger the pin?
https://www.adafruit.com/product/163?gclid=Cj0KCQjw3v3YBRCOARIsAPkLbK7-Uef7L635I1k2eREJkoDwWiZVRCd0OE7Y6-QCHCsORoYTqK8pcIoaAsJgEALw_wcB
' 08accel_xl335 ' accelerometer
#picaxe 08M2 ' 20M2
#terminal 4800
do
readadc10 C.1,w1 ' read "Z" axis of XL335 accelerometer
if w1 < 380 then ' acceleration towards a strike
sertxd(#w1," ")
pause 200 ' reduce/eliminate double reports
endif
pause 5
loop
I think the motion is pretty close to a nearly vertical hatchet-chop--I don't think that it would add much to look at other orientations.... if one cannot guarantee their orientation ...
You probably want peak detection through diodes with a slow enough fall time to detect.Can you diode-mix analog signals without essentially averaging them? It's possible that an average between neutral/no-strike and strike would be detectable, though I found a good bit of variation around neutral/resting with a hand-held pencil.
Yes it will.Question. Will the 28-2 operate correctly in the 28 pin starter board we got from revolution?
I know you already have the 28-pin board, but my recommendation would have been to get a 40X2 and breadboard it first, so you'd be sure you had enough spare pins to add whatever controls you decide you want.So we ordered a 28x2 from Phanderson today.
I am assuming you have an AXE020 board -The education Revolution board came with 3 ribbon connectors. I'm not sure how to use them but it looks like we can solder some pin headers on the bottom of the board that will allow us to plug into a breadboard.
Is that the usual way to proceed?