Go Down

Topic: SoftwareSerial with ATTiny84 using ATtiny library (Read 55254 times) previous topic - next topic


chalupien

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

Erni

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

Code: [Select]
//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: [Select]
//#include <SoftwareSerial.h>


Erni


chalupien

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 );
}


Jabrwock


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.

Tombo89

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.

garvit94

having the same problem when i use Attiny85 with BLE to communicate with android app , it shows the value like 0FF FF 00 FF.. . i also used Software Serial library with attiny.
Is there a solution to this problem?

Go Up