Go Down

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

Erni

#120
Feb 28, 2013, 02:48 pm Last Edit: Feb 28, 2013, 03:10 pm by Erni Reason: 1
I am confused too.
I think it would be a good idea if you describe your project in more detail. It is unclear how many and which pins you are expecting to use and for what purpose.

Just to be clear that we are talking about the same:

The Capacitive Sensing Library ned a sense and receive pin
http://playground.arduino.cc//Main/CapacitiveSensor?from=Main.CapSense

If you are using TinyISP and knockbang , the serial output form attiny is pin PB1 (physical pin 6) connected to pin pin 12 on the UNO,
This is also the reason why you should not use this pin as sense pin, as I tryed to explain

That leaves you with 2 pins (three if you use the reset pin)




hilukasz


I am confused too.
I think it would be a good idea if you describe your project in more detail. It is unclear how many and which pins you are expecting to use and for what purpose.

Just to be clear that we are talking about the same:

The Capacitive Sensing Library ned a sense and receive pin
http://playground.arduino.cc//Main/CapacitiveSensor?from=Main.CapSense

If you are using TinyISP and knockbang , the serial output form attiny is pin PB1 (physical pin 6) connected to pin pin 12 on the UNO,
This is also the reason why you should not use this pin as sense pin, as I tryed to explain

That leaves you with 2 pins (three if you use the reset pin)






ok this is where I am confused. I have the capacitive sensor hooked up to the attiny not the arduino (maybe that is where the confusion is). you say "using 0 and 1 you are interferring with MISO" I don't see how that will interfere with MISO on attiny...? nor did I know it even had it.

Those sketches I have up there are both uploaded to the attiny, I have capacitive sensor on 0 and 1 of attiny. and reading serial from attiny on PB3 (I thought this was default, I have always used this and it used to work fine) going into Tx of arduino. But I also leave it plugged into the programming board, but not sure if this will cause any unexpected errors.

let me know if this clears it up or if its still confusing.
for(i = 0, i < 820480075, i++){ Design(); Code(); delay(1000); } // hellowoo.com

Erni

#122
Mar 01, 2013, 01:38 pm Last Edit: Mar 01, 2013, 01:41 pm by Erni Reason: 1



Quote
ok this is where I am confused. I have the capacitive sensor hooked up to the attiny not the arduino


So do I   :D

Quote
nor did I know it even had it.


It does, see the picture above

Quote
you say "using 0 and 1 you are interferring with MISO" I don't see how that will interfere with MISO on attiny...?


Look at the picture PB1 (or 1) is MISO used by TinyISP to communicate with your Arduino

Quote
I have capacitive sensor on 0 and 1 of attiny


Again 1 is MISO

Quote
and reading serial from attiny on PB3 (I thought this was default, I have always used this and it used to work fine)


No, the default is PB1 when you are using TinyISP.


If you use TinyDebugSerial, the default is PB3

hilukasz





Quote
ok this is where I am confused. I have the capacitive sensor hooked up to the attiny not the arduino


So do I   :D

Quote
nor did I know it even had it.


It does, see the picture above

Quote
you say "using 0 and 1 you are interferring with MISO" I don't see how that will interfere with MISO on attiny...?


Look at the picture PB1 (or 1) is MISO used by TinyISP to communicate with your Arduino

Quote
I have capacitive sensor on 0 and 1 of attiny


Again 1 is MISO

Quote
and reading serial from attiny on PB3 (I thought this was default, I have always used this and it used to work fine)


No, the default is PB1 when you are using TinyISP.


If you use TinyDebugSerial, the default is PB3



Ohhhh, I was confusing myself because I was using a different core last time. it definitely had a different pin, i made suggestions you made and all is well. thanks for your patience :) everything is working as expected. so using TinyISP is 0 the serial in( like Rx on arduino)? this relationship kind of confuses me because I have output from attiny going into Tx of arduino, which I thought was transmit. I would expect it to go into Rx.
for(i = 0, i < 820480075, i++){ Design(); Code(); delay(1000); } // hellowoo.com

40087178

Hi, I would need some help to bring my ATTiny85 to life.

My goal is to establish a serial communication on my Tiny.
I've already spent long hours for looking a working solution but with no luck :/.

Tried various libraries, settings, pins .. so now I am stuck .
The scenario :

Arduino Bare - working fine
Uploaded a blinky sketch and that is working fine

Uploaded 2 kind of bootloaders (?) Various serial implementations.. I am confused :( Heeelp please.

I would be happy to start the whole process from the beginning because surely I missed something.. wrong bootloader, library..something..

Thanks !


Go Up