Comments (14)
I'm meeting with Mark today, and we'll merge the fixes into the master
branch and I'll rebuild the distributions with those changes.
-_Rick
On Wed, May 18, 2011 at 9:49 AM, nkcelectronics
[email protected]
wrote:
I cannot make analogRead() to read any value... as A0, A1 and so on are still undefined, I tried 0, 1... or even 54, 55... it always reads the same value 17.
Reply to this email directly or view it on GitHub:
#24
President
Fair Use Building and Research (FUBAR) Labs
http://fubarlabs.org
from chipkit32-max.
It's the pin mapping that is off.
from chipkit32-max.
I have these issues fixed, they will get uploaded to github tonight.
On 5/18/11 9:49 AM, nkcelectronics wrote:
I cannot make analogRead() to read any value... as A0, A1 and so on are still undefined, I tried 0, 1... or even 54, 55... it always reads the same value 17.
from chipkit32-max.
mkcelectronics, this should be fixed. Can you verify?
from chipkit32-max.
The A0, A1... error is gone, but still cannot get any reasonable value with analogRead()
from chipkit32-max.
Tested with build 20110519. AnalogInOutSerial is working fine.
from chipkit32-max.
Tested build 20110520 on MAC and still seeing the issue with analogRead().
Same value on A0 even though input voltage is changing.
Did something change back on 520 release?
from chipkit32-max.
On 5/22/11 11:13 AM, elproducts wrote:
Tested build 20110520 on MAC and still seeing the issue with analogRead().
Same value on A0 even though input voltage is changing.
Did something change back on 520 release?Are you seeing this on the Uno or a Max32 or both?
Mark
from chipkit32-max.
I just checked both Uno and Max32 boards, analog is working on both of them.
On 5/22/11 11:13 AM, elproducts wrote:
Tested build 20110520 on MAC and still seeing the issue with analogRead().
Same value on A0 even though input voltage is changing.
Did something change back on 520 release?
from chipkit32-max.
Maybe its my boards.
A0 works on MAX32, A1 does not.
Neither work on my UNO32
from chipkit32-max.
Does it make a difference that I'm using a MAC
from chipkit32-max.
I have a shield with a potentiometer with 5v on one side, gnd on the other and center tied to A0 pin.
I've tested this on the UNO32 and MAX32.
I used the example code in the BASIC section that reads the ADC and sends the result serially to the terminal.
The code compiles fine with the A0 argument in the analogRead() function.
The value is sent to the terminal is displayed in the terminal window but doesn't change when the pot is turned on the shield. This was on the latest UNO32 I received from Marc.
I tested this with the latest IDE for MAC or Windows XP.
I've tested it on a second MacBook running Snow Leopard and dual booted with WIN 7. Same results.
I then tested a Max32 on the XP system and it worked for A0.
When I tested the Max32 on the MacBook, I could not get the driver to install properly for the Max32 yet it worked for the UNO32. Very Strange.
I then tested the shield on an Arduino Duemilanove and it worked on each operating system.
I then went to a fresh IBM laptop with a fresh install of the latest MPIDE and connected the UNO32 with the shield.
Same unchanging result as I turned the pot.
I know Mark says he's says its working on his so I don't know what's going on.
This same board and shield worked a week ago when the A0 argument was replaced with a 2 to represent the AN2 pin A0 is connected to. A0 argument wouldn't compile back then.
That has been fixed but now this board just won't work with the new setup.
I cannot see what I may be doing wrong. Any ideas out there?
I also noticed that windows install is at version 20115021 and MAC/Linux is at 20115020. Is this an older install for Mac Linux?
from chipkit32-max.
It is not working on my Uno32 (AnalogInOutSerial). It reads always the same value.
from chipkit32-max.
I was using a different program, thats why I didnt see the problem
For now, change "A0" to 0, A0 is equal to 14 on the UNO and 54 on the
mega. I did not have the
translation for that.
Bug fixed
On 5/24/11 9:57 AM, nkcelectronics wrote:
It is not working on my Uno32 (AnalogInOutSerial). It reads always the same value.
from chipkit32-max.
Related Issues (20)
- Initialize device-specific features such as Floating-Point Unit in application startup code HOT 1
- Fix MPIDE splash screen to fix incorrect compatibility information HOT 1
- Create simple examples for SPI and DSPI libraries, include in Examples folder
- Create simple examples for DWTI library HOT 2
- Create new Software Serial library for Arduino 1.6.x compatibility HOT 1
- Create new build target getCore and have it copy chipKIt-core files to correct place
- Matrix and Sprite library no longer supported HOT 2
- Sync changes with chipKIT-core 20150903 HOT 1
- Added INO as default extension instead of PDE HOT 1
- bump version for release to 16778024
- Examples folder no longer shows up in MPIDE HOT 2
- Pull in code changes from issue #83 in core HOT 1
- Add define to allow sketches/library to know what IDE they're compiled under HOT 1
- Add -ftoplevel-reorder to c and c++ compile options HOT 1
- Fix over-ridden compiler options in boards.txt for -G1024 HOT 3
- Remove all vestiges of plilb.h from source HOT 5
- Re-code MPIDE so it doesn't use boards.txt at top level
- typedef struct compile error in mpide-20140316
- Updated FTDI driver to 2.12.10 HOT 1
- USB client stack problems HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chipkit32-max.