Thanks for the reply. I'm having doubts it's the software being the culprit. I have two boards each connected via USB on a different Mac. One of the two boards consistently had this 255 count jump with one of the A2D channels, but the other did not.
So, this morning I swapped the two boards...
I have the analog section set to 10 bits, but something strange is happening that I can't explain.
I have an analog input that I set to give an output via USB to approximately 2048. Now there is some noise at the input, so the output dithers about ±5 counts.
However, after running for a...
It almost sounds to me that your wheel is too sensitive. On a real car there shouldn't be a dead zone in the wheel (unless it's a 1960s Chevy), so I think that the wheel is too sensitive. In aviation they call this PIO (Pilot Induced Oscillations) because each time you try to correct the car...
I think there is a security bit that can be programed in the MK20DX256VLH7 to prevent that.
If you don't need USB, why are you using the boot loader chip, which requires USB?
I think the register location is 0x0000040C, but the boot loader chip is hard coded to prevent you from writing to that...
I would say your "proof-of-concept" is pretty well accepted. Now a clean implementation would be my next phase.
Keep in mind that the Teensy 3.2 schematic is a working design that Paul has skillfully, if not masterfully, created. Following that schematic and its layout criteria will do you no...
Yes, it sounds like a "layout" issue. As I said, the crystal is probably the most sensitive component on the board. Start there (once you get it running again).
If you look at various successful layouts, the crystal is always tucked in close to the processor with short traces. By-pass...
I can't see anything wrong with the schematic, but that doesn't mean the implementation is correct. I would "buzz" out the board very carefully to make sure every connection goes where it is intended and not where it isn't supposed to go. When wringing out a new design it is best to not assume...
You can put the table in an "include" file and do a #include. Use: static rom name_of_your_table [] = {,,,}
You should double check the word rom. I think the compiler should know what it means.
When you compile it will be picked up and added to the flash.
The software is used in different configurations, depending on how it is implemented and the total number of channels can vary. When I first did this I wanted to create something that would contain the largest number of A/D channels needed, then I would zero out unused channels.
I know there...
Yes. Keep struggling with the problem. You will get it!
The algorithm is simply an algebraic average. That is, you take a number of samples, say 8, and write the down on a piece of paper.
Now add up all 8 samples. Next divide the results by the total number of samples, which is 8. The...
You are apexing your turns too early. :)
I would sort out a few things first.
1. Do you know what the no-load resistance of the sensor is?
2. What is the resistance of the sensor at maximum load?
3. What is the A/D input voltage range for the micro board?
4. Is the resistor you are using...
Well, I am thinking you must have created some sort of system schematic for your device.
From the picture it looks like the way it is connected is not right. That assumes that the Arduino board's A/D input runs from 0 to 3.3VDC and the analog reference pin is at 3.3VDC.