Giter VIP home page Giter VIP logo

Comments (14)

ricklon avatar ricklon commented on July 24, 2024

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.

ricklon avatar ricklon commented on July 24, 2024

It's the pin mapping that is off.

from chipkit32-max.

msproul avatar msproul commented on July 24, 2024

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.

ricklon avatar ricklon commented on July 24, 2024

mkcelectronics, this should be fixed. Can you verify?

from chipkit32-max.

nkcelectronics avatar nkcelectronics commented on July 24, 2024

The A0, A1... error is gone, but still cannot get any reasonable value with analogRead()

from chipkit32-max.

nkcelectronics avatar nkcelectronics commented on July 24, 2024

Tested with build 20110519. AnalogInOutSerial is working fine.

from chipkit32-max.

elproducts avatar elproducts commented on July 24, 2024

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.

msproul avatar msproul commented on July 24, 2024

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.

msproul avatar msproul commented on July 24, 2024

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.

elproducts avatar elproducts commented on July 24, 2024

Maybe its my boards.
A0 works on MAX32, A1 does not.
Neither work on my UNO32

from chipkit32-max.

elproducts avatar elproducts commented on July 24, 2024

Does it make a difference that I'm using a MAC

from chipkit32-max.

elproducts avatar elproducts commented on July 24, 2024

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.

nkcelectronics avatar nkcelectronics commented on July 24, 2024

It is not working on my Uno32 (AnalogInOutSerial). It reads always the same value.

from chipkit32-max.

msproul avatar msproul commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.