Show Posts
Pages: 1 2 3 [4] 5 6 ... 23
46  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 03, 2013, 10:52:13 am
Quote
My sketch directory is in Document.
Then, the only other thing I can think of is that you are using a pre-1.0 core for the ATTiny85. You need to find a post-1.0 core to use with the post-1.0 IDE.
I searchedfor newer version : https://github.com/TCWORLD/ATTinyCore

However, when I try to change the board to attiny 85(8MHz internal). it give me error Serial was not declared.

So how to solve that ?

Thanks !

Wait, it seems to be working !

Will update soon ! smiley

Thanks so much !
47  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 03, 2013, 08:58:45 am
Okay, I think that's the problem. Have to find a newer core.

Thank you!
48  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 03, 2013, 08:50:31 am
Quote
So what should I do now ? Redownload the IDE ?
Instead of telling us whether or not that directory really is your sketch directory? I can't see how downloading the IDE again will be a satisfactory alternative.

If that IS your sketch directory, downloading the IDE again will leave it exactly the same, so your problem won't have gone away. Again, I don't see downloading the IDE again as a useful thing to do.

If that IS your sketch directory, deleting the SoftwareSerial folder WILL solve your problem.

But, it's your decision as to what to do.

My sketch directory is in Document.

Thank you.
49  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 03, 2013, 08:31:14 am
Quote
But it come along when I download the arduino 1.0.5 file. Why you would say that it is user-downloaded library file ?
Because the install path for the Arduino IDE and related code usually has the version number in the path. The sketch directory usually does not. Therefore, when I see a path without a version number, I assume that it is a sketch directory, and that is where user-downloaded libraries go. There are good reasons for following conventions.
So what should I do now ? Redownload the IDE ?

Thank you
50  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 03, 2013, 04:56:45 am
Quote
C::\Program Files(x86)\Arduino\libraries\SoftwareSerial/SoftwareSeial.h
This looks like a user-downloaded library file, not the core library file. If is IS a user-downloaded library location, delete the SoftwareSerial directory.
But it come along when I download the arduino 1.0.5 file. Why you would say that it is user-downloaded library file ?

Thanks!
51  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 02, 2013, 10:47:08 am
Are you sure that this version of SoftwareSerial you are using, is from Arduino 1..0.x ?

Code:
C::\Program Files(x86)\Arduino\libraries\SoftwareSerial/SoftwareSeial.h

Try to replace it and the coresponding .cpp file with the ones that comes with 1.0.x
I downloaded Arduino V1.0.5. So i think the SoftwareSerial is the newest version.

Any advice ?

Thank yo.
52  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 02, 2013, 09:39:24 am
What do you mean by own version of SoftwareSerial ?
Thanks !
If you load a board support package for a processor, it includes files that override the standard definition for header files.  If that board support package was built a few years ago and targeted the older release of the Arduino IDE, it would bring in the standard print header file, and one function (write) changed to have a different calling sequence.  So I imagine if you look around for a newer version of the board support package, and replace your version with the newer one, it may work better.

Similarly, in your sketchbook directory you can have two directories (libraries and hardware) that are searched before the standard versions.
What I found so far is that, no new softwareserial. Newsoftserial == softwareserial for arduino 1.0 and above.

Any advice ?
53  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 02, 2013, 08:43:16 am
Well, I tried it with arduino 1.0.5. I get this problem. So I could not figure out what is the problem exactly smiley-sad
Do you have your own version of SoftwareSerial sitting in your hardware directory in the sketchbook?  I believe that would preempt the system one.
What do you mean by own version of SoftwareSerial ?

Thanks !
54  Using Arduino / Programming Questions / Re: Attiny 85 with SoftwareSerial library on: November 01, 2013, 09:00:02 pm
Quote
and you might be able to find a newer version of SoftwareSerial.
Like the one that ships with 1.0+.

Well, I tried it with arduino 1.0.5. I get this problem. So I could not figure out what is the problem exactly smiley-sad
55  Using Arduino / Programming Questions / Attiny 85 with SoftwareSerial library on: November 01, 2013, 08:51:18 am
Dear all,

I am currently doing a project using a bluetooth module where I try to control a LED wirelessly through a bluetooth module and attiny 85 - to save pins.

This is the error that I got when compile it.

What is the problem actually ?

Thank you for your experience.
56  Using Arduino / Programming Questions / Re: shiftOut on: September 29, 2013, 01:16:05 pm
If I want to shift the number 00000001, then Qa will output 0 and be placed at MSB position and Qh will have value of 1 and position at the LSB ?

Is that what MSBFIRST/LSBFIRST means ?

Thanks !
57  Using Arduino / Programming Questions / Re: shiftOut on: September 29, 2013, 01:11:48 pm
Okay I think I get it now. The key is that 'it starts from Qa'

So if my example is 00000001, and order type is MSBFIRST, the 1 will be shift first ?

Thanks ! smiley
58  Using Arduino / Programming Questions / Re: shiftOut on: September 29, 2013, 01:04:23 pm
"If my number is 00000001, then it will shift the 0 first if it is MSBFIRST ?"  Yes.

"If my LEDs are numbered 1 to 8 from left to right assuming the most right is the LSB." So number them 7 to 0 from left to right. Then they will match up with your data. The lowest place of anything should always be position 0.
Look at how the data goes thru the shift register as well - from Qa to Qh. So Qa is the LSB and Qh is the MSB.
So your example 00000001 will end with Qh-g-f-e-d-c-b-a as 0-0-0-0-0-0-0-1.
So if MSB first, suppose the sequence should be reverse ? Assuming the data shift from left to right. So MSB first means Qh first and Qh will get shifted to the LSB position isnt that ?

Thanks !
59  Using Arduino / Programming Questions / shiftOut on: September 29, 2013, 12:38:34 pm
http://arduino.cc/en/Reference/shiftOut

Dear all,
I read this tutorial and I was confused about the MSBFIRST/LSBFIRST. Can anyone provide me an example how to illustrate the difference between this two ? If my number is 00000001, then it will shift the 0 first if it is MSBFIRST ? If my LEDs are numbered 1 to 8 from left to right assuming the most right is the LSB. So, I am confuse here.

Thanks for help smiley
60  Using Arduino / Project Guidance / IC2272/2262 4 channel wireless remote control kits on: September 28, 2013, 11:49:05 am
http://www.ebay.com/itm/IC2272-2262-4-channel-wireless-remote-control-kits-4-key-wireless-remote-control-/121038336534?pt=LH_DefaultDomain_0&hash=item1c2e727216

Hey guys, anyone of you tried to do some projects with this ? Any sample coding to test out whether my unit is working ? When I press 'A' at the remote control, D0 will HIGH or which one will HIGH actually ?

Thanks ! smiley
Pages: 1 2 3 [4] 5 6 ... 23