Show Posts
Pages: 1 ... 22 23 [24] 25 26 ... 73
346  Using Arduino / Microcontrollers / Re: is there anyway to add more PWM pins to arduino ? on: July 24, 2013, 04:56:22 pm
Take a look at SoftPWMLibrary

http://code.google.com/p/rogue-code/wiki/SoftPWMLibraryDocumentation

or this:

http://effluviaofascatteredmind.blogspot.dk/2010/02/arduino-pwm-on-all-pins.html
347  Using Arduino / Interfacing w/ Software on the Computer / Re: arduino to javascript gui on: July 24, 2013, 12:35:36 pm
This one?

https://github.com/voodootikigod/node-serialport
348  Using Arduino / Interfacing w/ Software on the Computer / Re: SUMP compatible logic analyzer code for Arduino. on: July 24, 2013, 07:19:34 am
Hi,

I need some help.
I have installed OLS-0.9.6.1.
I click on the run.bat and get the expected interface.
But when I click on "start capture" I get a box showed in the picture.
There are no way to set the baudrate or com port.

Are you using another version ?

Edit:
Found this, and it is working

https://github.com/jawi/ols/wiki
349  Using Arduino / Microcontrollers / Re: ATtiny85 reset pin as an analog input? (and how to burn fuse bits?) on: July 23, 2013, 11:32:24 am
Although the datasheet says 0.9 Vcc, in practice it is possible to go further down.

I just tried a potentiometer on the reset pin and found that the reset occurred at 2.14 V (Vcc = 4.98V)

There is of course no guarantee that this will always work, but shows that the reset pin can be used for something sensible
350  Using Arduino / General Electronics / Re: Looking for some input or suggestions on building a smart circuit ! on: July 22, 2013, 01:58:03 pm
Take a look at UBEC's

http://www.hobbyking.com/hobbyking/store/__767__766__UBEC_Regulator-UBEC.html

Some of them have low voltage alarm
351  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: July 22, 2013, 09:44:50 am
I just found this servo example on Avrfreaks.net.

ATTiny13 @ 9,6MHz

Drawbacks: only 100 steps, and only one servo


Code:
#include <avr/io.h>
#include <avr/delay.h>
#include <avr/interrupt.h>

//http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=74861&start=0
volatile unsigned int Tick;   // 100KHz pulse
volatile unsigned int sPulse;   // Servo pulse variable
volatile unsigned int Tick_20ms;   // Servo frame variable

void setup() {  

  OSCCAL=0x68;
  pinMode(4,OUTPUT);
  pinMode(3,INPUT);
  cli();
  TCNT0 = 0;
  TCCR0A=0;
  TCCR0B=0;

  TCCR0A |= (1<<WGM01); // Configure timer 1 for CTC mode
  TIMSK0 |= (1<<OCIE0A); // Enable CTC interrupt
  TCCR0B |= (1<<CS00); // No prescaler
  OCR0A = 95; // Set CTC compare value
  sei(); //  Enable global interrupts
  Tick = 0;
  sPulse = 100;
  Tick_20ms = 0;
}


void loop()
{
  //int val=analogRead(3); //use potmeter on PB3
  //sPulse=50+(val/10);

  for(int x=50;x<150;x++){

    sPulse=x;
    _delay_ms( 5 );
  }

  for(int x=149;x>=50;x--){

    sPulse=x;
    _delay_ms( 5 );
  }


}



ISR(TIM0_COMPA_vect)   // 100 KHz interrupt frequency
{
  if(Tick >= 2000)   // One servo frame (20ms) completed
  {
    Tick = 0;
    Tick_20ms = Tick_20ms + 1;
  }

  Tick = Tick + 1;
  if(Tick <= sPulse)   // Generate servo pulse
  {
    PORTB |= (1<<PB4);   // Servo pulse high
  }
  else
  {
    PORTB &= ~(1<<PB4);   // Servo pulse low
  }
}


352  Using Arduino / Microcontrollers / Re: Attiny 85 with virtual library on: July 21, 2013, 04:03:29 am
Did you mean virtualwire ?

In that case take a look at this:

http://forum.arduino.cc/index.php?topic=149928.0
353  Using Arduino / Programming Questions / Re: Vu Meter sketch on ATTiny2313 on: July 21, 2013, 03:50:50 am
Code:
left = analogRead(leftChannel);  // read the left channel

Attiny2313 don't have an ADC, so analogRead() won't work
354  Using Arduino / General Electronics / Re: I can lite an LED, but not a 3v flashlight bulb?? What is going on? HELP!!! on: July 18, 2013, 01:56:37 pm
Yes he has done a fantastic job.
It deserves to be used more often in here
355  Using Arduino / General Electronics / Re: I can lite an LED, but not a 3v flashlight bulb?? What is going on? HELP!!! on: July 18, 2013, 01:18:04 pm
See card2


http://www.pighixxx.com/abc-arduino-basic-connections/
356  Using Arduino / Project Guidance / Re: CapacitiveSensor library and ATTiny45 on: July 17, 2013, 04:47:08 pm
Good to here you got it working.

If you want to run your Attiny45 at 8MHz

Select board -> Attiny45@8MHZ
Select ->Tools->Programmer->Arduino as ISP 
select ->Tools->Burn Bootloader
357  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: July 17, 2013, 11:35:37 am
Attiny13 does not have a Timer1, and it only have 1.000 bytes of Flash for your sketch, so yes it is a known problem

If you have a Attiny85/Attiny45, there is a special servolibrary you can use
358  Using Arduino / Project Guidance / Re: CapacitiveSensor library and ATTiny45 on: July 17, 2013, 09:08:45 am
I just tried the sketch on an ATtiny85, works perfect !
And since the only difference between t85 and t45 is the memory size it should work on your t45
Depending on the resistor you are using, you might have to adjust the threshold value.
You also have a very long delay, maybe your touches are too short
359  Using Arduino / Microcontrollers / Re: Copying a sketch from a microcontroller on: July 17, 2013, 05:40:32 am
Quote
Then I should be able to use that hex file to program a new board, right?

Yes, in the example above you could do something like this:

avrdude -pm328p -Pcom20 -carduino -D -U flash:w:test.hex:i

r - read from flash
w - write to flash

Ofcource you will have to ensure that the fuses are the same
360  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: July 16, 2013, 05:25:02 pm
Problem solved.

I was using ATtiny13 @ 1,2 MHz, and the low fuse sat to 0x66

That meant the EEPROM was erased when uploading a new sketch, which is exactly what I did to check if the OSCCAL value had been written to EEPROM
I changed the fuse to 0x26, and everything is OK,
The OSCCAL value is written to address 62.
Pages: 1 ... 22 23 [24] 25 26 ... 73