Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #405 on: June 07, 2012, 12:55:51 pm » |
I have tried it with my PCB / smd 1284p and also with my DIP package on a breadboard. They both have the same issue
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #406 on: June 07, 2012, 12:59:13 pm » |
So that's like physical pin5 on the chip? The SPI default SS pin? You don't have SPI enabled after you set the pin as an input, do you? That would set it back to an Output as far as I know, and odd things could happen.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #407 on: June 07, 2012, 01:02:00 pm » |
Hmm... My setup is running an led strip which the library to control it uses SPI, pins SCK and MOSI...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #408 on: June 07, 2012, 01:02:31 pm » |
but yes physical pin 5
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #409 on: June 07, 2012, 01:06:43 pm » |
hmm... Ok so it still doesn't work even if I set is as OUTPUT.
If I just dont set it to anything it does work...lol
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #410 on: June 07, 2012, 01:10:02 pm » |
Read the data sheet - SS pin has to be set to Output for SPI operations when the device is the Master. Set it to OUTPUT before SPI.begin() is called. I've never seen problems when using it that way.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #411 on: June 07, 2012, 01:15:03 pm » |
Works!!!  Seriously CrossRoads if I could give you a hug I would! lol You have successfully helped me with every issue I have had during this crazy microcontroller roller coaster. For being totally kick ass, when this hoop is done I am giving you one, and I don't care if you hulahoop or not, you are going to have the world sickest most artistic well thought out just awesomenest lol hulahoop in the world. Thanks for all the help man. And super fast response, I wanted to get this thing ready for a show tonight.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #412 on: June 07, 2012, 01:16:59 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #413 on: June 07, 2012, 01:18:46 pm » |
I look forward to it! As for timeliness, sometimes you get lucky - I just happened to have a couple minutes between meetings and was poking around ...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #414 on: June 07, 2012, 01:20:30 pm » |
I very much appreciate it, that would have taken me forever to figure out
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #415 on: June 07, 2012, 01:26:09 pm » |
You'll have to send me the camera settings you used for pictures too...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #416 on: June 07, 2012, 06:11:43 pm » |
I used an older SLR cannon, and adjusted the shutter speed to 1.25... I am not sure as to what the 1.25 means.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 68
|
 |
« Reply #417 on: June 07, 2012, 06:23:01 pm » |
For anyone who ran into this issue, using SPI but need to use SS as input for a button. You don't have to set is as input, before or after SPI(); Set if LOW before reading: Then set it back HIGH after you read the button state. digitalWrite(4, LOW); PushTwoR = digitalRead(4); //  digitalWrite(4, HIGH);
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 6
Posts: 1398
Arduino rocks
|
 |
« Reply #418 on: August 04, 2012, 03:04:40 pm » |
Madhu, I am trying to use the Arduino 1.0 IDE's SoftwareSerial library with an ATMEGA1284P; on physical pins 24 and 25 (pins 18 and 19 in pins_arduino.h for the standard variant) and I see that I cannot receive on pin 24(18). However, I can transmit successfully on pin 25(19).
After research, I now understand that I need to use pins that support 'change interrupts' - which pins on the 1284P support that? Pin 24 and 25 support change interrupts, according to datasheet. Did you fix the problem with SoftwareSerial on 1284?
|
|
|
|
|
Logged
|
|
|
|
|
Sweden
Offline
Full Member
Karma: 5
Posts: 115
|
 |
« Reply #419 on: August 05, 2012, 04:01:53 pm » |
Got a question: Is the ATmega1284P bootloader (Mighty 16Mhz optiboot) compatible with the Arduino USB Serial Light adapter?
|
|
|
|
|
Logged
|
|
|
|
|
|