Pages: 1 ... 12 13 [14]   Go Down
Author Topic: SoftwareSerial with ATTiny84 using ATtiny library  (Read 49760 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

MISO is PIN 12
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got the SOftwareSerial.h to work. For some reason it was not in my libraries!. Still want to get the Knock-bang working
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 37
Posts: 1095
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is what i have in the _TinyISP_BuildOptions.h tab when using KnockBang.

Code:
//Set to 1 if using KnockBang and comment out #include <SoftwareSerial.h> in TinyISP
#define RELAY_KNOCK_BANG_ENABLED 1

//Set to 1 if using Serial Relay, and uncomment #include <SoftwareSerial.h> in TinyISP
//Transmit on Arduino is A0
#define RELAY_SERIAL_ENABLED  0

And in the TinyISP tab I comment out #include <SoftwareSerial.h>

Code:
//#include <SoftwareSerial.h>
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes exactly what I have
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 37
Posts: 1095
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please post your sketch
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 25
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is a straight copy from the example on page 3 of this post

#include <TinyDebugKnockBang.h>

void setup( void )
{
  Debug.begin( 250000 );
}

void loop( void )
{
  Debug.println( F( "Caitlin! " ) );
  delay( 1000 );
}
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13072
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

MISO is PIN 12

Uh huh.

Reread my question.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure what you're asking about and certainly not in the last section.

To get started with Knockbang, here is what I do:

In  _TinyISP_BuildOptions_h i put these lines:
I couldn't figure out all day what I was doing wrong with my tiny24. Then I tried putting those lines in _TinyISP_BuildOptions.h instead of where I had them before. I must have read the instructions wrong.
Logged

Offline Offline
Newbie
*
Karma: 3
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
i've got some problems with the attiny and software serial. I made a little RGB Blutetoth control via smatrphone like seen many times before. Everything works fine with my nano board. Now i wan't to port this to an Attiny85.
But it didn't work. I send via Smartphone Like 255x255x255 and use parseint() in arduino. Like seen in the Documentation.
I used Pin 0,1,4 as Pwm output and 3 for rx. I'm getting no erros while compiling and uploading but the values are not stored right trough serial.parseint. I'm using Low to High tech cores. And also tried this https://code.google.com/p/arduino-tiny/ where i get compiling erros. I've searched and tryed many things but an't get this to work.
Logged

Pages: 1 ... 12 13 [14]   Go Up
Jump to: