all | audio | badgelife | breakout | clocks | displays | experiments | feather | handhelds | home automation | howto | LED art | misc | props | robots | sewing | software | tools | no_category

DC motor board with attiny13

finally soldered

Help is highly appreciated. Need common pitfalls and traps for young players, never really worked with a MOSFET before :D Hand over tutorials. Does the MOSFET fdc6333c from fairchild I already bought make sense for this?

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.

DC motor board with attiny13 | Blinking and interrupts and stuff

2016-11-27 10:41:49

When I started with the pin setting I first confused the pin direction setting byte with the state setting byte :D So I thought of breaking my code in peaces to fix the problems and start with the basics.

I found a library for the Attiny13A written by MCUdude on github - link is in the link section - that gives me a head start to use the Arduino IDE for coding. Feels weird saying that. Here's code for an LED flasher (german: "Wechselblinker") - two leds alternating the blinks.

void setup() {
  // put your setup code here, to run once:
    DDRB = 0x03; //PORTB
}

void loop() {
  // put your main code here, to run repeatedly:
  PORTB = (1<<PB1) | (0<<PB0);
  delay( 1000);
  PORTB = (0<<PB1) | (1<<PB0);
  delay( 1000);
}

I'll post the other code later.