Search the Community

Showing results for tags 'Analog shield'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 28 results

  1. Hello, i am having trouble using the chipkit uc32 together with the analog shield here : https://store.digilentinc.com/analog-shield-high-performance-add-on-board-for-the-arduino-uno-retired/ When i connect the Shield to my Arduino UNO one samples needs about 10 microseconds witch should be right. Instead if i connect it to the chipKit uc32 it takes about a 150 microseconds. I guess the SPI communication is not working properly but i dont know why. Since i dont know wether the board is the retired version or the newest i thought it might not work if its the old one. Did anybody else have a similar problem or is there a way to find out wether my uc32 is the old or new revision. Thx in advance Edit: I solved the problem. Instead of using the Arduino IDE i switched to MPIDE. Now it works with a sample rate of 1sample / 25 microseconds. There might be a problem with the Additional Board Manager URL for the Arduino IDE. I might take a look at it if i have the time.
  2. MohitVerma

    Analog Shield DAC and ADC Offsets

    Hi there, I've been using the Analog Shield with a UC32 for controlling and measuring different parameters in a physics experiment. I've noticed that for certain voltages, the DAC (and ADC) both have offsets on the order of 10 - 40 mV relative the value that they are being programmed to (or being feed to by a power supply). This offset seems to be random (in that it doesn't follow a specific trend), although it is consistent for the same ADC/ADC. I've also seen that the offset pattern is different for different DAC/ADCs on the same Analog Shield and I've also tested this on different Analog Shields and still seen this issue. This error seems to be much larger than the specified offset error for the DAC and ADC. Has anyone experienced similiar DAC/ADC offset issues with the Analog Shield? And has anyone developed any clever solutions/compensation libraries to deal with this to get more precise reading?
  3. Hello, I have some questions about the Analog Shield: - What is the dimension of an analog shield plugged on top of an Arduino Uno? (Total dimension of the assembly, for planning the size of the enclosure) - What is the pitch of the headers on top of the board, where the AO pins are routed? Is it standard 2.54-mm pitch? Is there a guide somewhere what is the location of these headers for plugging some boards in them? (Like for routing some BNC plugs to the wall of the box) - A very stupid question in the end: do I need to separately power the Analog shield when coupled with an Uno, or it can get enough supply from the pins of the Arduino? Thanks
  4. Hi, When I configure certain digital pins to be inputs, I can not longer update the DACs. Rather strangely, I can configure pin 8, 9, 10, and 12 as inputs without problem, but setting pins 11 and 13 to be inputs stops communication with the DACS. There is no issue if they are configured as outputs. For example, the following works as expected with DAC1 ramping #include <analogShield.h> //Include to use analog shield. #include <SPI.h> //required for ChipKIT but does not affect Arduino void setup() { pinMode(12, INPUT); } unsigned int ramp = 2000; void loop() { // put your main code here, to run repeatedly: analog.write(1, ramp); ramp++; } If pinMode(12, INPUT) is changed to either pinMode(11, INPUT) or pinMode(13, INPUT), DAC1 does not ramp. The same behaviour is seen on all DACS. Any ideas why? Thanks in advance. I am using this library: https://github.com/wespo/analogShield
  5. mwingerson

    Using Analog Shield with UNO32

    I am posting a support question to help help drive the AnalogShield knowledge base on the forum. "I purchased 2 Analog Shields and 2 Chipkit UNO32 boards and am trying to use them together. The web page for the Analog Shield is misleading and implies that the Analog Shield is compatible with the the Chipkit Uno32. However I cannot get the Analog Shield library to compile in MPIDE. There is a compile error that sates something like "the library contains AVR specific code and will not work on the the UNO32" or something like that. What's the deal? How do I get the Analog Shield to work with the Chipkit Uno32?" We are updating the product page to be easier to use but until then I can help you with support problem. Can you be more specific on what demo you are running? Also, the latest version of the library can be found here: https://github.com/mwingerson/analogShield
  6. Hello, My name is Simeon, I am postdoc at Purdue University. I'd like to use Arduino Uno and the Analog Shield for a quantum optics application. In a general effort to keep the setup organized and protect parts from damage, I enclose all PCB electronics into boxes or cases. So far, I have found all boxes and cases I need at DigiKey. However, for the {Arduino + Analog Shield} assembly, I have failed to find commercially available boxes with the correct dimensions, despite spending two hours looking for it. I called Digilent Customer Service, but they could not help me either. All I need is a metal or plastic box which keeps the two PCBs tight and preferably allows access to the connectors (basically, the Arduino USB and the Analog Shield's DAC ports). Although I could make some holes myself, I don't have the skills and time to design and machine the whole enclosure. Is anyone using a standard pcb box for these components from a common vendor? Thank you in advance! Simeon
  7. Hello Digilent community, I'm running an analog shield on an arduino uno (well, actually an Ruggeduino SE, but I understand they would operate the same here). Arduino 1.8.2 I'm reading from two sensors and reporting data to the terminal.The board is attached to and powered by usb (which reads ~4.75 V): The sensors are powered form the Analog shields +5/-5 V rails. 1) A thermistor that is dropping over a 10K resistor on analog channel 0. The analog shield reports the thermistor reading ~48150 A/D counts when it reads ~2380 mV with the multi meter. 2) an ion selective electrode another sensor that outputs -150 to +150 mV on analog channel 1. The sensor reads ~33070 counts and 55 mV with the multimeter I would like to know the transfer equation to convert the A/D count so that I can compare the analog shield reading to my multimeter. The sensors have been characterized in the voltage domain so I would like to convert the A/D counts to volts so that I can convert the sensor readings to engineering units (celsius, etc).This is a newb question, yes - I don't have any experience with bipolar sensors and A/D converters. Typically the transfer function for A/D to volts is something like this: Equation 1 (from googling around): Volts = ((A/D reading / (Nbits-1))* Vfullscale) - Vfullscale/2 For this system I've gathered the following info from the datasheets and docs: Nbits -1= 2^16 -1 = 65535, Vfullscale = 10V (5V to -5V), Are these values correct? Should I change them to the bus voltage that is measured (for example, change 5V to 4.75V when plugged into USB)? Plugging these values in for the thermistor reading I get: 2347 mV, an error of ~1.5%, not bad. Plugging these values in for the ion selective electrode reading I get: 46.2 mV, an error of ~16%. Do these error magnitudes seem acceptable to you? I'll likely re-characterize sensors with this platform as it will deployed rather than relying on the previous sensor characterizations done with a multimeter. I'd like to know if this is this the correct approach to convert A/D counts, and if so, suggest it be added to the example code or documentation to help others. If not, please let me know how and where I'm in error. Here is the code: //include libraries #include <analogShield.h> //Include to use analog shield. #include <SPI.h> //required for ChipKIT but does not affect Arduino\ //Defines // which analog pin to connect #define THERMISTORPIN 0 #define ISEPIN 3 // full scale voltage (5V- -5V) #define VFS 10.0 //loop delay time in ms #define DELAYTIME 1000 //16 bits (0 to 65535) #define NBITS 65535.0 void setup() { Serial.begin(9600); } void loop() { // read data from A/D double ISE_counts = analog.read(ISEPIN); double therm_counts = analog.read(THERMISTORPIN); //Convert A/D counts to volts double ISE_volts = ((ISE_counts / NBITS) * VFS) - VFS / 2; double therm_volts = ((therm_counts / NBITS) * VFS) - VFS / 2; //print data to the terminal Serial.print("Average temperature voltage: "); Serial.println(therm_volts); Serial.print("Average ISE voltage: "); Serial.println(ISE_volts); delay(DELAYTIME); } Thanks in advance,
  8. I have been working with the Digilent analog shield for quite some time now, and initially, using its functions was an easy task and calling analog.read and analog.write in my main loop presented no trouble. Fast forward to today, every time I have called analog.write(the only analog shield function i need) in my main loop code, it seems to fail. The code function is called in a large menu setup and the code isn't the cleanest, but I have put in print statements both before and after the code is called. Both statements are printed in the Serial monitor, ensuring that the arduino is certainly reading the analog.write code, but whenever i test a channel, the output does not change from what was initially written out in the code's setup function. if someone could describe what is happening, that would be grand. please help.
  9. energyzappa

    Zero error - Analog Shield ?

    With the Analog shield mounted on an Arduino Leonardo, I'm seeing a zero error at each of the analog inputs with a zero voltage input or the Arduino's Ground connected to the analog pin. Using the signed read in non-differential mode, the A0 input reads -65 counts, A1 input reads -75, A2 input reads 85 and A3 reads -65. Is there any adjustment that I can make to the board to reduce this zero error? This zero error persists even when I switch from powering the board through the USB to a wall wart power supply. Thanks
  10. Hello, I am working with the chipKIT Max32, chipKIT Network Shield, and ti / Stanford Analog SHIELD from Digilent. I need to be able to generate various analog signal remotely (Ethernet). I have not been successful using the Analog SHEILD with the Max32 (much less the addition of the Network Shield). However, using my Arduino Uno, I am able to generate a signal using the "passthrough" and "ramp" example with the Analog Shield. I would continue to use the Uno, however, I need the extra digital I/O the Max32 (Mega format) has to offer. Also, I have verified basic communication with Max32 using the "blink" example. 1) What is the probable cause of my failure with the Max32 versus the Uno? 2) What corrective action should I take? Boards in use: Max32 Rev E, Analog SHIELD Rev D, Network SHIELD Rev C Software: passthrough and ramp examples included with the Analog Shield library, Arduino IDE 1.6.13 Note: I had looked at using MPIDE with the chipKIT Max32, but the website for MPIDE recommended the most up version of the Arduino IDE. So, MPIDE is one option (of which I am aware) I have not tried, yet. Thank you for any assistance you can offer.
  11. pjb_ngnr

    Arty and Analog Shield

    Has anyone used the Analog Shield with the Arty. The Arty states on its ChipKit interface: "Note: The Arty is not compatible with shields that output 5V digital or analog signals. Driving pins on the Arty shield connector above 5V may cause damage to the FPGA. " Looking at the schematics, it seems like using the SPI to drive the DACs and read the ADCs on the "Analog Shield" shouldn't be a problem from the "Arty", however that disclaimer makes me think otherwise. Given the "Analog Shield" has +/-7.5VDC supplies, I am hesitant to purchase an "Analog Shield" for use with the Arty. Any incites would be greatly appreciated. If they are compatible boards, that would be a very convenient combination.
  12. Has anyone used the Analog Shield with the Arty. The Arty states on its ChipKit interface: "Note: The Arty is not compatible with shields that output 5V digital or analog signals. Driving pins on the Arty shield connector above 5V may cause damage to the FPGA. " Looking at the schematics, it seems like using the SPI to drive the DACs and read the ADCs on the "Analog Shield" shouldn't be a problem from the "Arty", however that disclaimer makes me think otherwise. Given the "Analog Shield" has +/-7.5VDC supplies, I am hesitant to purchase an "Analog Shield" for use with the Arty. Any incites would be greatly appreciated. If they are compatible boards, that would be a very convenient combination.
  13. a.honarfar

    Analog shield DAC off set

    Hi Friends, We are using the analog shield for measuring some analog feedbacks but we find out there is 0.65V off set for each reading chanels and also the open circuit voltage is 2V. Can you tell us what is wring in there?
  14. I am developing a wireless data logger using Analog Shield and chipKIT WiFire, and am struggling with unstable "analog.read" function behavior. My code steps are as follows: 1) acquire analog voltage with Analog Shield, 2) save data into SD and 3) send the data with UDP over WiFi. It works sometimes, but most of the time, it stops at an analog.read function. I cannot understand this inconsistent behavior. Below is the sample code which reproduces the same issue. ----- code starts from here ----- #include <MRF24G.h> // sketch works if this line is commented out #include <DEIPcK.h> // sketch works if this line is commented out #include <DEWFcK.h> // sketch works if this line is commented out #include <analogShield.h> #include <SPI.h> // include SPI.h after analogShield.h inclusion. otherwise fails void setup() { Serial.begin( 9600 ); } void loop() { unsigned int count = analog.read( 0, false ); Serial.println( count ); delay( 50 ); } ----- code ends ----- First, I doubt power shortage, so I have tried two different power supply configuration: via UART(J1), and an external 9V supply via DC plug(J15) with J16 jumper setting set to EXT, but no luck. Is there any possibility of library conflicts? FYI, I use modified version of "analogShield.h" library downloaded from https://forum.digilentinc.com/topic/2211-analog-shield-and-chipkit-wifire-compatibility/ Any input would be greatly appreciated.
  15. I've been using the Analog Shield with the uC32 board, but I was just reading the specifications on the Chipkit Wifire and would like to try using that board instead because of the much larger static RAM (512kB vs 32kB for the uC32). I read the reference manual for the Chipkit Wifire, and it appears to me that the Analog Shield should work from the hardware point of view. I tried compiling some code using the Analog Shield for the Wifire with Arduino software and chipkit-core, but the Analog Shield library gives an error "Incorrect processor type" because the board doesn't have a PIC32MX processor. If I modify the analogShield.h header file to add "#if defined (__PIC32MZ__)" and put in the same includes as for the PIC32MX, is that likely to work? Or will there be other problems? Will the faster clock speed of the Wifire cause a problem with the Analog Shield? I'm also interested in the DSP functions of the PIC32MZ. I found a library for MPLAB Harmony. Is it possible to port it or modify it to work with MPIDE or Arduino with Chipkit-core?
  16. Hi digilentinc forum! I added analogShield library following the instruction in Analog Shield Manual 02 - First Time Setup R03.pdf. However, I got an error message when trying to compile the passthrough example. I tried and failed to compile with both 1.5.x ver. and 1.6.x Arduino IDE. The error message seems to refer to objects inside analogShield.cpp file, which I never modified. Any suggestion on how to fix this bug is appreciated. Here is the error message: Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino Uno" /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:831:11: warning: extra tokens at end of #else directive [enabled by default] #else (__AVR__) ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'unsigned int analogShield::read(int, bool)': /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:314:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE3; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:314:38: error: 'SPI_MODE3' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE3; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:315:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:315:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:316:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'int analogShield::signedRead(int, bool)': /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:453:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE3; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:453:38: error: 'SPI_MODE3' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE3; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:454:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:454:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:455:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'void analogShield::write(int, unsigned int)': /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:730:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:730:38: error: 'SPI_MODE1' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:731:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:731:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:732:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'void analogShield::write(unsigned int, unsigned int, bool)': /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:833:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:833:38: error: 'SPI_MODE1' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:834:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:834:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:835:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'void analogShield::write(unsigned int, unsigned int, unsigned int, bool)': /Users/yz536/Documents/Arduino/libraries/analogShield/analogShield.cpp:882:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:882:38: error: 'SPI_MODE1' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:883:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:883:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:884:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp: In member function 'void analogShield::write(unsigned int, unsigned int, unsigned int, unsigned int, bool)': /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:937:21: error: 'SPI_MODE_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:937:38: error: 'SPI_MODE1' was not declared in this scope SPCR = (SPCR & ~SPI_MODE_MASK) | SPI_MODE1; ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:938:21: error: 'SPI_CLOCK_MASK' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:938:40: error: 'SPI_CLOCK_DIV2' was not declared in this scope SPCR = (SPCR & ~SPI_CLOCK_MASK) | (SPI_CLOCK_DIV2 & SPI_CLOCK_MASK); ^ /Users/.../Documents/Arduino/libraries/analogShield/analogShield.cpp:939:21: error: 'SPI_2XCLOCK_MASK' was not declared in this scope SPSR = (SPSR & ~SPI_2XCLOCK_MASK) | ((SPI_CLOCK_DIV2 >> 2) & SPI_2XCLOCK_MASK); ^ exit status 1 Error compiling for board Arduino/Genuino Uno.
  17. j2p

    Analog shield drawing

    I am looking for a drawing of the analog shield, more specifically giving the coordinates for the headers (especially the ones that are not native to the Arduino board), and mounting holes. Also coordinates for the center of the potentiometer. I would be happy with the special connectors + outline + potentiometer+ mounting holes that are not on a normal arduino board, since the other connectors can be found in drawings for the arduino. Anyone have these coordinates? I'm using EAGLE by the way in case there is a brd file somewhere. Patrik
  18. Will the analog shield work with an arduino yun?
  19. I am working slowly on my project. I thought I might post what could be a useful DipTrace base layout for a shield to use with the Analog Shield on an Arduino Uno . It could even be useful to somebody making an unrelated shield for Uno by stripping out the P1, P2, and P3 headers on the left and adjusting the board outline. The component designations and pin numbers match those of the Analog Shield. My board may end up bigger than the Analog shield, but I have put a board outline into the file that matches the 2.1 by 3.1 inch dimensions of the Analog Shield. I think it is correct, but I have not had a board built. I made a copy of my in-progress layout, and stripped out the components. The Analog Shield uses Uno D2,D3, D5, D6 (P7-3,4,6,7) for its data to or from the Uno. As an aside, on my specific project, I have a Sainsmart 2x16 LCD Keypad-Shield that will go atop my custom shield. As far as I can tell, that uses Arduino signals D4,D5,D6,D7,D8,D9 and AD0. The Uno uses D13 for its LED, but could be shared in a pinch. That would seem to leave me with Uno D0, D1, D11, D12 to use for my own use by my shield. I expect to only need 1 or 2 Uno output port pins to my exclusive use. Any opinions as to which is/are most likely to be available, even if I upgrade to a different display shield in the future? Attached PDF is expanded scale. Bluish-gray is bottom silk. Green is top silk. Blue lines are ratlines for some of the grounds, and may be ignored. 1. I hope the DipTrace layout is useful to somebody. 2. Suggestions are encouraged. Analog_Shield_Base.dip img_ Analog_Shield_Base.pdf
  20. Hello I would like to store the data collected by the analog shield on an sd card. I'm using and Arduino UNO and the Keyes Data Logging Shield http://www.tinkbox.ph/sites/tinkbox.ph/files/downloads/Keyes - Data Logging Module (rev 1.0).pdf Both the Analog Shield and the Data Logging Shield works perfectly alone, but as soon as I stack both of them on top of the Arduino the Analog Shield stop providing output on the serial interface. I changed the CS pin on the Keyes Data Logging Shield from 10 to 4 but nothing happened. Suggestions? Bests, Andrea
  21. Hi all, I have just bought an Analog Shield. In the references, it is said that Analog Shield board is compatible with Arduino Uno and ChipKIT. Is it possible if I want to use Analog Shield with Arduino mini pro (8Mhz, 5V) or Pcduino ? If yes, is there anything should I consider ? I would very appreciate if anyone can help me understand more clearly. Thank you very much
  22. Diagonal

    Apparent problem -- solved.

    Confession: Part of original post was: "Using Uno board with an Analog Shield. What fixed resources does the Analog Shield library use? I have code that stopped interrupts from occuring by doing only #include <analogShield.h> , but the interrupts resumed after commenting out the include. This code was to establish a timed interrupt for accessing the Analog Shield, and I did not get to integrating in my analog access stuff." Well, my problem was really stupid. I had a call to the lcd inside an ISR. Duh.
  23. mwingerson

    analog shield with UNO32

    I am posting a support question on the forum so I can answer it here to help out others that may have a similar problem. " I downloaded the latest analogshield library from git hub. I'm trying to get the following code to compile in MPIDE: #include <analogShield.h> //Include to use analog shield. #include <SPI.h> //required for ChipKIT but does not affect Arduino #include <SoftwareSerial.h> // anndrews pins SoftwareSerial rs(4,7); //rx,tx // johns pins //SoftwareSerial rs(2,3); //rx,tx void setup() { pinMode(13, OUTPUT); digitalWrite(13, LOW); Serial.begin(115200); rs.begin(115200); Serial.println("Test"); } void loop() { } Compile errors are: In file included from C:mpidelibrariesSPI/SPI.h:16:0, from C:mpidelibrariesanalogShield/analogShield.h:54, from sketch_mar24a.cpp:1: C:MPIDEhardwarepic32corespic32/avr/pgmspace.h:4:2: error: #error ******** This sketch or library uses AVR-specific code that may not work with the chipKIT platform. See this forum for more information on porting code to chipKIT [www.chipkit.org/forum/viewforum.php?f=7] ******** In file included from C:mpidelibrariesanalogShield/analogShield.h:54:0, from sketch_mar24a.cpp:1: C:mpidelibrariesSPI/SPI.h: In static member function 'static byte SPIClass::transfer(byte)': C:mpidelibrariesSPI/SPI.h:56:3: error: 'SPDR' was not declared in this scope C:mpidelibrariesSPI/SPI.h:57:12: error: 'SPSR' was not declared in this scope C:mpidelibrariesSPI/SPI.h:57:19: error: 'SPIF' was not declared in this scope C:mpidelibrariesSPI/SPI.h: In static member function 'static void SPIClass::attachInterrupt()': C:mpidelibrariesSPI/SPI.h:63:3: error: 'SPCR' was not declared in this scope C:mpidelibrariesSPI/SPI.h:63:11: error: 'SPIE' was not declared in this scope C:mpidelibrariesSPI/SPI.h: In static member function 'static void SPIClass::detachInterrupt()': C:mpidelibrariesSPI/SPI.h:67:3: error: 'SPCR' was not declared in this scope C:mpidelibrariesSPI/SPI.h:67:12: error: 'SPIE' was not declared in this scope " The errors are because the tools are trying to compile the Arduino side of the library. I am curious why that is happening. I tried your code on my machine and did not have any compile issues so lets figure out what is going on. My setup: - Windows 7 - MPIDE 20140821 - latest version of the library here: https://github.com/mwingerson/analogShield - chipKIT UNO32 What is your setup? Thanks for contacting us on this issue.
  24. adralencar

    Analogshield and ChipKIT Wi-FIRE

    Does anyone know if AnalogShield will work on the new ChipKit Wi-FIRE (with few modifications) ? I look inside the library and I saw several " #ifdef __PIC32MX__ " However the new ChipKit WI-FIRE is " PIC32MZ ", MZ not MX. In other words, without any modification it will not work. However, if the chip is similar, as described in this forum, should be easy. Thanks
  25. FilipeAltoe

    Analog Shield Example Not Working

    Guys; I have hooked up a 100Hz 2Vpp sinewave to Analog Input 0 and ran the passthrough example sketch. Kept getting a flat 2V output on all AO channels (0 through 3). I commented out the two lines of the example and analog.write(0, 60000); in the hope of getting a different AO value on channel 0, but still get the flat 2V. Have a scope hooked up to AO channels. I have tried to set the V jumper to both 3.3V and 5V, but the result is the same. The Analog Shield is connected to an Arduino Uno. Any help appreciated. Thanks Filipe