Show Posts
Pages: 1 ... 42 43 [44] 45 46 ... 71
646  Using Arduino / Microcontrollers / Re: programming attiny 85 error on: January 07, 2013, 05:58:51 am
Which version of Arduino IDE do you use. There has been some problem with ArduinoISP in  version 1.00.

You could try this modified version to see if it helps:

http://arduino.cc/forum/index.php/topic,108797.msg824488.html#msg824488  reply #39
647  Using Arduino / Project Guidance / Re: SoftwareSerial only rx Pin cause no more pins left on: January 02, 2013, 04:02:56 pm
The problem with your sketch is the size:

Binary sketch size: 4.776 bytes (of a 8.192 byte maximum)

There is a bug in the toolchain, but luckily Tom Carpenter has a solution:

https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC

When you have made this correction, your sketch will compile without errors (I dont know if it will be working as expected)

Edit: I use this core:

http://code.google.com/p/arduino-tiny/
648  Using Arduino / Motors, Mechanics, and Power / Re: Servo current? on: January 02, 2013, 12:00:15 pm
HXT900:

Sweeping under no load 100mA
Stall current: 700mA
649  Using Arduino / Microcontrollers / Re: Help with shrinking program on to Tiny85 on: January 02, 2013, 08:13:33 am
And two share the same pwm pin

So there are three different pwm pins:

PB4
PB0
PB1
650  Using Arduino / Programming Questions / Re: simple code question - siren on: December 30, 2012, 02:30:42 pm
After the first while block ,frequency is 2001

After the second while block ,frequency is 2000

And then you start all over  again
651  Using Arduino / Microcontrollers / Re: Arduino and Pololu Simple Motor controller, Not so simple on: December 27, 2012, 04:57:02 pm
Instead of this:
Code:
Serial.print("GO<CR>");

Try this

 
Code:
Serial.print("GO\r");

Carriage return is \r
Newline is \n
652  Using Arduino / Microcontrollers / Re: attiny85 serial monitor on: December 22, 2012, 08:45:26 am
I just tryed:

Attiny85v @8mHz
TinyDebugSerial  at 9600
A  (fresh) CR2032
No problem with Serial.print() in serial monitor

And with SoftwareSerial
Same result, I am able to communicate with the tiny both ways

I am using these Fuses (BOD disabled)

L: E2 H: D7 E: FF
653  Using Arduino / Microcontrollers / Re: TTL UART CP2102 Converter on: December 22, 2012, 05:42:26 am
I have tried manual reset as P18F4550 describe.
Another possibility is to connect a 0.1uf cap from DTR to reset on the Arduino

654  Using Arduino / Microcontrollers / Re: ATtiny45 pulseIn on: December 21, 2012, 10:20:04 am
Quote
but it still dosen't work
Which error do you get?

Try to follow these steps

http://www.ernstc.dk/arduino/attiny85.html
655  Using Arduino / Microcontrollers / Re: ATtiny45 pulseIn on: December 21, 2012, 09:26:19 am
Below is my boards.txt for attiny45
As you can see I have uncommented this option
attiny45at1.upload.using=arduino:arduinoisp
Because I use ArduinoISP



Code:
attiny45at8.name=ATtiny45 @ 8 MHz

# The following do NOT work...
# attiny45at8.upload.using=avrispv2
# attiny45at8.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny45at8.upload.using=arduino:arduinoisp
# attiny45at8.upload.protocol=avrispv2
# attiny45at8.upload.using=pololu

attiny45at8.upload.maximum_size=4096

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; [CKSEL=0010 SUT=10]; default value
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny45at8.bootloader.low_fuses=0xE2
attiny45at8.bootloader.high_fuses=0xD7
attiny45at8.bootloader.extended_fuses=0xFF
attiny45at8.bootloader.path=empty
attiny45at8.bootloader.file=empty45at8.hex

attiny45at8.build.mcu=attiny45
attiny45at8.build.f_cpu=8000000L
attiny45at8.build.core=tiny
 
###########################################################################

attiny45at1.name=ATtiny45 @ 1 MHz

# The following do NOT work...
# attiny45at1.upload.using=avrispv2
# attiny45at1.upload.using=Pololu USB AVR Programmer

# The following DO work (pick one)...
attiny45at1.upload.using=arduino:arduinoisp
# attiny45at1.upload.protocol=avrispv2
# attiny45at1.upload.using=pololu

attiny45at1.upload.maximum_size=4096

# Default clock (slowly rising power; long delay to clock; 8 MHz internal; divide clock by 8)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; [CKSEL=0010 SUT=10]; default value
# Divide clock by 8 internally; [CKDIV8=0]
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny45at1.bootloader.low_fuses=0x62
attiny45at1.bootloader.high_fuses=0xD7
attiny45at1.bootloader.extended_fuses=0xFF
attiny45at1.bootloader.path=empty
attiny45at1.bootloader.file=empty45at1.hex

attiny45at1.build.mcu=attiny45
attiny45at1.build.f_cpu=1000000L
attiny45at1.build.core=tiny
 
###########################################################################
656  Using Arduino / Microcontrollers / Re: ATtiny45 pulseIn on: December 21, 2012, 08:53:09 am
Below is the output from my Attiny85 @ 8MHZ, connected to a rc receiver
Pulses from 1101 - 1923 as expected.

This also shows how convenient it is to use Coding Badly's TinyISP. You can get debuginformation in serial monitor, just like you are used to from the Arduino


Code:
1104
1117
1101
1167
1306
1395
1453
1458
1511
1661
1808
1923
1920
1923
1779
1511
1511
1524
1511
1506
1524
1514
1511
657  Using Arduino / Microcontrollers / Re: Can i program external PIC´s with Arduino. - WHICH to buy? on: December 20, 2012, 01:03:18 pm
The programming language is c/c++ , you can get an overview here:

http://arduino.cc/en/Reference/HomePage

To give you an impression, here is the first sketch to try. It is blinking a LED also known as Hello World for microcontrollers like Arduino

Code:
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */
 
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

658  Using Arduino / Microcontrollers / Re: ATTiny85 constant error on: December 20, 2012, 12:58:04 pm
Congratulations.
After playing with tiny's for over a year, I still think there is something magical about that you can get such a small gizmo to do what you tell it to do
659  Using Arduino / Microcontrollers / Re: ATTiny85 constant error on: December 20, 2012, 12:42:09 pm
Quote
How do I use the TinyISP?   Is the pde a Processing sketch?

You can use it just like the usual ArduinoISP sketch.
Make a folder where your othher sketches are located and drop the files in there.
Then open the TinyISP.ino in the IDE and you are ready.

Coding Badly has explained some of the advantages here:
http://arduino.cc/forum/index.php/topic,123388.30.html reply#33

And yes I have used USBasp programmer too. Just remeber to choose tools->programmer->USBasp

If you don't have this option, you can edit your programmer.txt
660  Using Arduino / Microcontrollers / Re: Can i program external PIC´s with Arduino. - WHICH to buy? on: December 20, 2012, 12:21:07 pm
Hi Jens and welcome, nice to see another Danish on the forum !,

I would suggest that you buy an Arduino UNO, with DIP chip.
If you are unlucky to damage the chip, you can just buy a chip and plug it in.
You don't need a programmer, just plug the UNO in the USB of your computer and you are ready to go.
And by the way, Arduino dont't use PIC but AVR controllers.

Places to look for

http://www.avrshop.dk/   my prefered shop, day to day delivery
http://www.electrozone.dk/
http://www.let-elektronik.dk/


Greetings from Aarhus
Pages: 1 ... 42 43 [44] 45 46 ... 71