Whenever I try to get it to do stuff, it outputs a whole bunch of jibberish in the serial console.
Now I know I have the right baud, the serial is setup, and the analog is definitely connected.
The setup I have is this:
// 5v------10k-------Sensor------GND
// |
// Analog
The sensor is a variable resistor. I know that it isn't the problem.
On the PC. The Arduino is set for 9600.
The Arduino is set up to use the 8MHz internal clock, could that be it?
It's also the non-picopower version of the atmega328.
pitaj:
On the PC. The Arduino is set for 9600.
The Arduino is set up to use the 8MHz internal clock, could that be it?
It's also the non-picopower version of the atmega328.
The Arduino is set up to use the 8MHz internal clock, could that be it?
Does the IDE know that? If it does, it should adjust timings for serial output correctly, so the 9600 baud rate on the Arduino matched the 9600 baud rate on the PC.
That it didn't do the adjustment tells me that the IDE doesn't know that you are not running at 8MHz, which could cause other problems.
You should be able to set the same baudrate (9600) in both the IDE serial monitor and on the Arduino. I just verified it works on my 8MHz chip. Here's the recipe to make it all work: