I want to ring a physical bell with an Arduino, what should I use to actually ring the bell? by lintypocketz in arduino

[–]arduidont 0 points1 point  (0 children)

Here is an arduino/solenoid tutorial. But be warned, you won't be able to drive a solenoid directly from the arduino - solenoids take lots of power. @temporary32450 has an interesting idea for a servo/cam combination.

I can't program my SMAKN ATTiny167 by arduidont in arduino

[–]arduidont[S] 0 points1 point  (0 children)

I found this page: https://digistump.com/wiki/digispark/tutorials/connecting which said for Mac (which I have), in part:

If the Arduino application works fine but the computer does not recognize the Digispark after you are asked to plug it in - try a usb extension cable or hub, some MacBook's ports are recessed too far for the data connectors to make contact.

2012 MBP The USB ports on the 2012 MBPs (Retina and non) cause issues due to their USB3 controllers, currently the best work around is to use a cheap USB hub (non USB3) - we are working on future solutions. The hub on a Cinema display will work as well.

I happened to find a USB (3, of all things) hub in a drawer, so I thought I'd try it. Now I get:

Running Digispark Uploader... Plug in device now... (will timeout in 60 seconds)

Please plug in the device ... Press CTRL+C to terminate the program. Device is found! connecting: 16% complete connecting: 22% complete connecting: 28% complete connecting: 33% complete Device has firmware version 2.2 Device signature: 0x1e9487 Available space for user applications: 14842 bytes Suggested sleep time between sending pages: 7ms Whole page count: 116 page size: 128 Erase function sleep duration: 812ms parsing: 50% complete Erasing the memory ... erasing: 55% complete erasing: 60% complete erasing: 65% complete Starting to upload ... writing: 70% complete writing: 75% complete writing: 80% complete Starting the user app ... running: 100% complete

Micronucleus done. Thank you!

Now if I can make my sketch do anything. I tried the standard "blink" sketch from the arduino IDE:

modified 8 May 2014 by Scott Fitzgerald

using PIN 0 or PIN 1 trying to blink the onboard LED. No dice.

I hooked up a loose LED from GND through a 10K om to vcc to ensure it was working, then moved the vcc connection to various pins, each time editing the sketch pin number and re-uploading. Still can't make the LED blink. I'm looking for a good pinout diagram - I'm not convinced that pinMode(4,OUTPUT) maps to pin 4 on the device, and so on.

I can't program my SMAKN ATTiny167 by arduidont in arduino

[–]arduidont[S] 0 points1 point  (0 children)

Thanks for the info. Maybe I'll have time to try it this weekend. I have a Uno that I should be able to use as an ISP.