Show Posts
Pages: [1] 2 3 ... 74
1  Using Arduino / Microcontrollers / Re: Problem uploading to t85 which has nothing do to with a PCREL error on: September 30, 2014, 05:09:43 pm
Wrong board selected?

The subject says t85, the errorcode says t45
2  Using Arduino / Microcontrollers / Re: LPC810 mini ARM Prozessor in 8 pin dip package on: September 28, 2014, 06:58:31 am
A big thank to ChrisMicro

I just got my LPC810 and had a working blinky almost without trouble.
Here is the procedure I used
Download Arduino 1.5.7
Download Chris's zip-file from post #1
From that download  copy LPC8 folder and tools folder to: <path programs>Arduino/hardware/arduino

I use a 3v3 usb/serial converter so that can be directly connected to the chip so next steps:

Disconnect the power from the chip and connect pin 5 to ground to go into programming mode
Compile and upload the sketch.
Disconnect power and pin 5 from ground
Reconnect the power, and the sketch should start

I was a little confused about the pin numbers but they are here:

http://vilaca.eu/lpc810/

BTW you have to have python and  Flasmagic istalled too (used for the upload)

My OS is Windows Vista
3  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 24, 2014, 02:35:55 pm
Yes that would be correct for 50 microseconds

4  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 24, 2014, 01:26:16 pm
Quote
once the signal dissolves it takes one second for the circuit to turn off.

The timeout for the pulseIn() function is 1 second, so you could set it to a lower value

pulseIn(pin, value, timeout)

http://arduino.cc/en/Reference/pulseIn
5  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 24, 2014, 11:30:42 am
Quote
This made me wonder what Erni was using to create his 12500hz signal when he got the return of 40-41

I was using my Arduino UNO and the tone library.

Code:
tone(7,12500)

An I measured the 40-41 microseconds on an ATtiny85 using a sketch much like the one you are using now.
BTW the values you get now seems OK, as youn only have to decide if there is a signal or not.
6  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 23, 2014, 12:38:23 pm
Quote
I wasn't sure what you meant by the results were 40-41

At a frequence of 12500 each pulse is 1/12500 = 80 microsecond long.
With the pulseIn you only measure how long it is high or low, so at 50% duty cycle the result wil be 80/2=40 microseconds.

Quote
For pulse in, does it matter which at tiny pin i am using for the square wave input?

No you can use any pin (except, Vcc, grnd od reset ofcource)
7  Using Arduino / Programming Questions / Re: ArduinoISP sketch is bad ? on: September 23, 2014, 12:12:59 pm
Quote
I still get a whole lot of "NOT Declared errors"

Strange I get no errors and I have some blinking LED's on my Attiny

I use this core for the tiny's:

https://code.google.com/p/arduino-tiny/

You could give it a try.

Edit:
In case you don't solve it before the two days, I have attached the HEX file you can upload to the tiny.
It is compile for 8MHz
8  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 23, 2014, 12:06:45 pm
Now I think you are over complicating things.

Like I said, the pulseIn function will work on a Attiny45.

Going back to your sketch in reply #4, you already has most of the solution.

You measure the pulse

Code:
int pulse = digitalRead(pin);

Now you know that if there is a frequnce of 12500 Hz the pulsein will return a value of 40-41
The only thing you are missing is a if statement

Code:
if (pulse>38){
// we have a pulse do something
}else{
//we have no pulse do something other
}
9  Using Arduino / Project Guidance / Re: ATTINY45, Solution/Substitution for FreqCount Library? on: September 23, 2014, 10:54:48 am
At that frequence you could use pulseIn() function on your Attiny45.
Preferrable running it @ 8MHz

I just tried it and the results were 40-41

10  Using Arduino / Programming Questions / Re: ArduinoISP sketch is bad ? on: September 23, 2014, 10:47:36 am
An Arduino sketch should the two functions

Code:
void setup() and void loop()

Instead you code use
Code:
void  main() and a for(;;)

Below I have substitutet the two functions so it actually works on a Attiny85 (I think)

11  Using Arduino / Project Guidance / Re: Breadboard Arduino keeps restarting on: September 22, 2014, 04:22:03 am
You could try adding decoupling capacitors, o.1uF from VCC to ground close to the chip, and on the powerlines.

See:

http://www.gammon.com.au/forum/?id=11637
12  Using Arduino / Microcontrollers / Re: Error flashing a new atmega 328p using arduino uno r3 as ISP.. on: September 21, 2014, 03:23:51 pm
You could specify the path to the hex file.
For example if the hexfile is in D:/hfiles

The commandline would be

avrdude -P com3 -b 19200 -c avrisp -p m328p -v -e -U flash:w:D:/hfiles/RGB.hex:i -U lock:w:0x0F:m
13  Using Arduino / Microcontrollers / Re: Light Dimming with ATtiny85 on: September 17, 2014, 11:42:17 am
Quote
the board doesn't allow a 16MHz crystal

You don't need a crystal to run an ATtiny85 @ 16MHz.

14  Development / Other Software Development / Re: How about including an "XLoader" program in arduino distribution? on: September 16, 2014, 02:26:46 pm
There are several other wrappers around

http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html

http://khazama.com/project/programmer/

An easy solution is to just write the avrdude command in a .bat file (windows) and let the enduser click on that
15  Using Arduino / Microcontrollers / Re: Watchdog Timer with Attiny 85 on: September 12, 2014, 04:38:03 am
Take a look at Jack Christensens demo sleep code

http://forum.arduino.cc/index.php?topic=167467.0
Pages: [1] 2 3 ... 74