Show Posts
Pages: 1 2 [3] 4 5 ... 72
31  Using Arduino / Microcontrollers / Re: PWM Controller on: June 11, 2014, 09:02:11 am
You could try this library for pwm freqence
32  Using Arduino / Microcontrollers / Re: ATTiny87 core? on: June 10, 2014, 03:01:39 pm
Take a look at this:

Currently the following processors are supported:

33  Using Arduino / Microcontrollers / Re: Arduino IDE and ATTiny45 on: June 10, 2014, 01:36:16 pm
If you use this core for the tiny:

You can choose between ARduino 1.xx and 1.5XX
34  Using Arduino / Microcontrollers / Re: ATTiny84 and software serial problems on: June 10, 2014, 01:33:36 pm
If you use the tiny core you mention, the output from TinyDebugSerial will be PA1 (physical pin 12)
on the ATtiny84.

If you connect that pin to your Arduino pin TX->1 (and put a wire from reset to ground on your Arduino)
you should see the output.
35  Using Arduino / Microcontrollers / Re: analog read on attiny13 on: March 20, 2014, 07:00:01 am
Which core are you using ?

If you are using  smeezekitty core, and you connect the potmeter wiper to pin PB4, you are using ADC2.

So this line

int potPin = 4;

should be

int potPin = 2;
36  Using Arduino / Microcontrollers / Re: Attiny85 voltage issie on: March 16, 2014, 10:47:33 am
What I would do when debugging a problem like this is to isolate the problem.
In this case I would make a sketch that only read the ADC pins to see if it was only pin PB3 that was acting strange.
(try PB2 and PB4 aswll)

Thanks! Is there an error in there though?

  // int reading = analogRead(PIN_TEMP);
The code example was meant to test the pwm pins only, as I thought you had a problem with them.
Sorry for the confusion (in the future I will promise myself not to confuse people in here )
37  Using Arduino / Microcontrollers / Re: Attiny85 voltage issie on: March 14, 2014, 11:06:52 am
Bearing in mine 0,1,4 I have to use as I believe they are the only ones with PWM.

That's right.
The analog pins are numbered after the ADC numbers

Analog (ADC) pins are PB2 (A1), PB4 (A2) and PB3 (A3) (physical 7,3 and 2)
so for example:

int val=analogRead(2); // Reads ADC value on pin PB4
To test your circuit and the use of the right pins you could try this simplified version

#define PIN_RED 0
#define PIN_GREEN 1
#define PIN_BLUE 4
#define PIN_TEMP 3 // analog read from ADC3 - pin PB3

void setup()


void loop()
  // int reading = analogRead(PIN_TEMP);
  for (int r = 0; r < 256; r++) {
    analogWrite(PIN_RED, r);
    analogWrite(PIN_BLUE, r);
    analogWrite(PIN_GREEN, r);
  // fade from violet to red
  for (int b = 255; b > 0; b--) {
    analogWrite(PIN_RED, b);
    analogWrite(PIN_BLUE, b);
    analogWrite(PIN_GREEN, b);

38  Using Arduino / Microcontrollers / Re: Attiny85 voltage issie on: March 14, 2014, 09:16:01 am
I get no errors when compiling and I am not surprised.

I use this core:

This code:

void setup() {

void loop() {

Is how you use TinyDebugSerial on ATtiny85 (and 84/2313).
The output will be on pin PB3

@wudzi : which core are you using

Then there's a problem with your installation.

@fungus: the fact that I am not using the same core as you dosn't mean there
is a problem with my installation.
39  Using Arduino / Project Guidance / Re: Can I use Spi and ethernet simultaneously in Arduino Yun on: March 12, 2014, 02:46:04 pm
The Arduino Yun has two processors.
You can see it as a Arduino Leonardo handling the SPI, and the other chip AR9331 which handles the Ethernet communication.

So yes you can handle both
40  Using Arduino / Motors, Mechanics, and Power / Re: digital servo communication protocol on: March 11, 2014, 10:35:16 am
You could take a look at Futaba's S-Bus,99708.0.html
41  Topics / Robotics / Re: PID to control robot move in straight line!!!! urgent please on: March 11, 2014, 05:39:50 am
Thank you for your link and blogpost,
well written and understandable for a PID beginner like me
42  Using Arduino / Microcontrollers / Re: Arduino Uno ISP and ATTINY2313 LED not blinking on: March 09, 2014, 03:33:48 pm
But the led on Pin 13 (PB1) of ATTINY2313 is not blinking

As mentioned in the instructions : pin 13 is PB4  or physical pin 16
43  Products / Arduino Yún / Re: Yun suddenly will not upload sketches on: March 04, 2014, 06:00:45 am
Thisn is what I did
44  Using Arduino / Installation & Troubleshooting / Re: Yun suddenly will not upload sketches on: March 04, 2014, 05:57:04 am
I'm not sure what "Arduino as ISP" means
It means you use an Arduino withe the sketch ArduinoISP ,as a programmer,

Take a look at this.
45  Using Arduino / Installation & Troubleshooting / Re: Yun suddenly will not upload sketches on: March 03, 2014, 03:04:22 pm
Did  you try to upload a sketch via LAN ?

I once had the  problem that the bootloader disappeared, which gave the same symptons as you describe.
I reburned the bootloader using Arduino as ISP.

But i think there might be easyer solutions, I think it would be better asking in the Yun subforum
Pages: 1 2 [3] 4 5 ... 72