Show Posts
Pages: 1 ... 69 70 [71] 72 73 ... 322
1051  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 11:46:06 am
Oh well, sometimes you never find out what was wrong so you just have to settle for the fact that it works now.

Zakly.....

I now have a breadboard established as an atTiny programmer, and a method which works.

I'll probably make a shield on Veroboard, along the lines of this but with the 330R resistors and those signal LEDs (or at least the "heartbeat" on pin 9).
1052  Using Arduino / Motors, Mechanics, and Power / Re: Servo Motor - Full Rotation on: June 29, 2014, 11:36:12 am
Send it a few values with the servo library, servo.pos()

On a normal servo, 90 will take it to the midpoint, but on a continuous servo is a speed of 0. (Or in theory... it may be 88, 89, 90, 91 or 92, say.)

On a normal servo, 0 will go full position one way, but on a continuous servo will be full speed spinning  in one direction.

On a normal servo, (90 edit error) 180 will go full position the other way, but on a continuous servo will be full speed spinning  in the other direction.

1053  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 11:24:22 am
I didn't try the Instructable in Reply#1 until the one I originally posted gave the Arduino.h error and had also downloaded the file strykeroz linked.

So no, I don't know why the so-called "MIT" files give the Arduino.h error, nor do I know what's wrong with the zip file on Reply1 cos I didn't use it.

The boards file thing isn't an error: the instructions say there is only a "prospective boards" file and you should copy out the bits you need into a new, boards, file. I just renamed it to start, and then pruned it later.
1054  Using Arduino / Motors, Mechanics, and Power / Re: Servo Motor - Full Rotation on: June 29, 2014, 11:14:36 am

which means, I cannot only let it turn 45 degree, or  90, or 180?

Correct, you can't. Once it's modified, and some members here then say it should not be called a servo anymore, the value you send which would position a "real" servo, now control the speed of a "continuous" servo.
1055  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 11:09:14 am
Ok, just to clarify....

The zip I downloaded is this one: https://code.google.com/p/arduino-tiny/ (Strykeroz' Reply#9)

The instructions I followed, using the above zip though, were: http://www.instructables.com/id/Using-the-Arduino-Uno-to-program-ATTINY84-20PU/ (Bainesbunch's Reply#1). But I also added 330R series resistors in the programming lines, and added signal LEDs as described in the IDE File > Examples > ArduinoISP sketch

Those instructions are better than the ones I previously linked to: http://www.instructables.com/id/Simplest-and-Cheapest-Arduino/ (JimboZA Reply #5).

Sorry for the confoosh.

E&OE. YMMV. Ts & Cs apply.  smiley-razz
1056  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 10:58:58 am
Sorry Dave, slight lie on my part: I actually downloaded the zip from strykeroz' link in reply #9, but followed the steps from the first Instructable. Main thing was the boards.txt file where I just renamed the prospective boards one, and remember in the IDE to go Tools > Programmer > Arduino ISP which the second Instructable didn't need.

Edit: I since edited the boards file to include only the one I need, so IDE the list in Tools > Board isn't too long.
1057  Using Arduino / Installation & Troubleshooting / Re: installation problem on: June 29, 2014, 10:52:38 am
NDIAYE you ought to start a fresh thread for your question, but meantime:

I don't think the positioning of your LED has anything to do with the problem, since it's not uploading your code in the first place. On your PC go to Control Panel > Device Manager > Ports and see if your Arduino is in the same place the IDE thinks it is, in Tools > Serial Port.
1058  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 09:53:34 am
I hadn't seen the first Instructable when I posted the link to the second one. The first one's actually the better one imo- it's essentially what I did this morning to get it working, although I must prune the boards list as suggested.
1059  Using Arduino / Programming Questions / Re: heat sensor & led, what am i doing wrong? on: June 29, 2014, 08:29:29 am
With the structure you have now, the "else" part (the last bit) is only else'd with the val>high part, that's why you need it all in one.

Also, you set bled LOW in all three parts at the moment.
1060  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 06:33:42 am
Ok, thanks, that worked using that link above.

There's one small extra step over the Instructable amd that's to remember to choose the Arduino as Programmer. In the Instructable, that's not necessary since the target board already says that the Arduino is the ISP.

I made up a programmer on a mini breadboard stuck onto a prototyping shield, as shown in attached pic. The LEDs at the left are those suggested in the Arduino ISP sketch; the one on the right is on pin0 for the Blink sketch. The programming lines have 330R in series, and note the capacitor.
1061  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 04:45:33 am
@strykeroz... I unzip "arduino-tiny-0150-0020.zip" into the sketchbook > Hardware folder I guess?

(Which I did but I don't see the board in the IDE list. The other file- the one that didn't work- has a boards.txt file which seems to inform the list. I don't see such a file in the one you linked to?)

EDIT.... I renamed Prospective Boards to Boards and now it lists them... so let's try an upload.
1062  Using Arduino / Project Guidance / Re: Problem programming ATtiny85 on: June 29, 2014, 02:38:37 am
I get the exact same arduino.h problerm as the OP. I have to attend to my domestic job-jar right now, so I'll try the linked Arduino Tiny one later on.
1063  Using Arduino / Programming Questions / Re: heat sensor & led, what am i doing wrong? on: June 29, 2014, 02:24:31 am
Post your new code... apart from Arrch spotting the ; did you incorporate his else if idea too? so you should have:

Quote
if
else if
else

.... kind of structure, all in one.
1064  Using Arduino / Programming Questions / Re: heat sensor & led, what am i doing wrong? on: June 29, 2014, 01:31:18 am
Are you sure the val is ever in the on-range of 146 to 155?

What does your Serial.print say that val is?
1065  Using Arduino / Project Guidance / IC pin 1 placement convention? on: June 29, 2014, 01:25:47 am
When ICs are vertical, I guess it's normal to have the notch at the top- pin 1 top left.

But if an IC is horizontal- as is often the case with a long breadboard across one's desk- is there a convention for placing the notch at left or right?
Pages: 1 ... 69 70 [71] 72 73 ... 322