Pages: 1 2 3 [4]   Go Down
Author Topic: Common anode RGB LED  (Read 2628 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 56
Posts: 2182
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It complains about parseInt() ... saying 'class SoftwareSerial' has no member named 'parseInt' ...

Maybe there's a "core anomaly."
Considered a parseInt() workaround, testing incoming bytes for 0x30-0x39 in your own function ?
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 505
Posts: 31343
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It could be that your installation is wrong.
How have you set up things to compile under attiny?

Also do you actually need serial communications in the final project or is it just debugging.

Yes it compiles fine for the UNO.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes Mike I do need Serial communication. I am controlling LEDs from my android device. Which I have done and works awesome it's just I want it on an Attiny as to not carry arduino around. Not sure what you mean by setup things to compile under attiny?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay I figured it out. I downloaded a different tiny core and I no longer get the error. I uploaded sketch to my attiny84 and since I dont have an FTDI serial to usb cable I am simply using the arduino for now just for TX and RX. Only thing is there is a huge lag using the attiny84. Anyone know max baud rate for the attiny84??
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 505
Posts: 31343
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Only thing is there is a huge lag using the attiny84.
That doesn't sound like a baud rate issue. What sort of time delay?
It sounds more like a buffer emptying issue.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well it lags about 1/2 second delay from time I choose the color to the time I actually see the color.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 505
Posts: 31343
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think that is an arduino issue. There is no mechanism that would delay it so much. It sounds like a packet thing from your phone.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well When I connect the arduino to my phone it runs smooth with no lag. It's only when I run it on the Attiny84 chip. I am Still using the Arduino's RX and TX though as I do not have a Serial to USB cable. Could this be it? I wouldn't think so as I am only using the Arduino to essentially convert serial to USB.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 505
Posts: 31343
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wouldn't think so as I am only using the Arduino to essentially convert serial to USB.
It could be that. Data in USB form is transmitted in frames which are normally polled every 1mS. It could be in your setup that the polling is not as frequent so resulting in the delay.
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah I think I will try a USB to Serial cable. Would this work??  http://www.amazon.com/CP2102-Module-Download-Serial-Converter/dp/B009T2ZR6W
Logged

Pages: 1 2 3 [4]   Go Up
Jump to: