Shop OBEX P1 Docs P2 Docs Learn Events
Propeller ASC (Arduino Shield Compatible) - Page 8 — Parallax Forums

Propeller ASC (Arduino Shield Compatible)

1456810

Comments

  • doggiedocdoggiedoc Posts: 2,239
    edited 2011-12-02 09:59
    I'm in for 2!! Thanks Martin.

    Paul
  • doggiedocdoggiedoc Posts: 2,239
    edited 2011-12-05 12:28
    Came in today! Thnks for fast shipping Martin!
  • FranklinFranklin Posts: 4,747
    edited 2011-12-31 17:00
    Just got mine and I have a quick question. Which pins do I use for i2c communications? The Arduino uses analog 4 and 5 but it looks like these are inputs only on the ASC.
  • kuronekokuroneko Posts: 3,623
    edited 2011-12-31 17:12
    Franklin wrote: »
    Which pins do I use for i2c communications? The Arduino uses analog 4 and 5 but it looks like these are inputs only on the ASC.
    Check the schematic. They're P15 (SCL) and P14 (SDA). Played with its MCP yesterday and used both pins to check the analog stuff. Note that it uses 1k series resistors which may be a bit high for certain purposes (can be bridged).
  • FranklinFranklin Posts: 4,747
    edited 2011-12-31 18:02
    Check the schematic. They're P15 (SCL) and P14 (SDA). Played with its MCP yesterday and used both pins to check the analog stuff. Note that it uses 1k series resistors which may be a bit high for certain purposes (can be bridged).
    After looking at the schematic I don't see where these pins are brought out to the outside world. Could someone point out my overlooking? Thanks.
  • kuronekokuroneko Posts: 3,623
    edited 2011-12-31 18:08
    Franklin wrote: »
    After looking at the schematic I don't see where these pins are brought out to the outside world.
    Analog channels 4 and 5.
    512 x 358 - 23K
    i2c.png 22.6K
  • FranklinFranklin Posts: 4,747
    edited 2011-12-31 18:10
    Thanks, I saw the analog lines going into the adc and stopped looking there.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2012-01-24 10:50
    Wow, i haven't been on in a while, but i wanted to say that i did get the ASC working with the SD shield. I had to buy a 4GB uSD card though... I have done a little work on a new program(A program loader for ASC) and i will release it soon. I will start a different thread so i don't clog up this one... Sorry for not being on much. I have been pretty busy starting my own PC repair business, but i have a little down time, so i will be playing around with the prop and ASC a little more. And i will still try to fulfill my promise to get the ASC in a project:) I was thinking,it would be cool to try and port over the Arduinio shield libraries to SPIN to help the ASC newbies adjust a little better? Any ideas?
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-01-24 20:47
    Weren't you having problems with 4G cards? did you mean you had to buy a 2gig? As for the project, if porting the librtaries sounds interesting to you, go for it. Whatever gets you excited. :)
  • RavenkallenRavenkallen Posts: 1,057
    edited 2012-01-26 07:24
    @Martin... YES, Sorry. I meant the 2GB SD card. I just broke down and bought a couple(Not a bad price on Newegg). And i will get working on the libraries right away:)
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-07-12 11:52
    Still a work in progress, but finally a much needed info repository for the ASC and other stuff: http://mghdesigns.com/wiki/
  • PowersoftPowersoft Posts: 72
    edited 2012-07-28 08:51
    Hello,

    Is the Propeller ASC RGB adapter a real VGA output?
    Wich object can I use from the exchange to test this adapter?

    Thanks in advance.

    Jan Kromhout
    Hellevoetsluis-nl
  • Mike GreenMike Green Posts: 23,101
    edited 2012-07-28 09:48
    Yes, the RGB adapter provides a standard VGA output. Any of the several VGA drivers from the Object Exchange including the one packaged with the Propeller Tool will work. Here's one. This one expects an I/O pin group number when initialized. The Propeller ASC provides an extra group of I/O pins that the RGB adapter uses and these are I/O pins 16..23 which would be group number 2.
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-07-28 10:04
    If you're on Windows, you can use any of the VGA demos included with the Propeller Tool.

    File > Open From... > Propeller Library - Demos

    They all should work without modification. The ASC uses pin group 16 to 23 which is the same as the Parallax Demo board. Try those demos and if you still get no image we'll diagnose further.

    EDIT:

    Thanks, Mike. That is a good example too.
  • PowersoftPowersoft Posts: 72
    edited 2012-07-28 12:13
    Hello,

    Tried many programs include the one `mike supposed but with no results.
    Monitor is oke, check this with the quick proto board.

    How can I check?

    Thanks.

    Jan Kromhout
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-07-28 14:06
    Was your VGA adapter pre-assembled or did you solder it? Look at the picture on this page and compare it to what you have. Are the resistors in the right configuration? Have you checked for solder bridges? Have you checked the continuity of all the connections?

    There is a schematic for the VGA adapter linked on my Wiki.

    If you don't have an oscilloscope, you can use a plain volt meter. Load and run one of the demos mentioned above. While it's running, put the neg probe on the "GND" pad and, with the pos probe, measure each of the labeled holes directly under the "Propeller hat" logo. You should see anywhere from 0.15 volts to 3.3 volts. With the reset button held in, you should see about 0.28 volts on all the pads.

    Try that and let us know what you find.
  • PowersoftPowersoft Posts: 72
    edited 2012-07-28 14:41
    Found the problem, was forgotten to solder the connectors starting at 6,7 (2*8)
    So there was no connection to the p16..p23.
    Last question. What to do with the holes numbered P16 .. P23
    I think I should close these bridges to make a connection between the propeller P16 .. P23 and the resistors R1..R8


    Thanks.

    Jan Kromhout
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-07-28 20:32
    I am glad that you got it working!

    You need not do anything with the two columns of holes labeled P16...P20. They are for probing the wave forms with an oscilloscope. Each pair are connected together and to the resistors.
  • PowersoftPowersoft Posts: 72
    edited 2012-08-06 08:27
    Hello,

    I want to use the I2C connection of the Propeller ASC.
    How can I have acces to these in SPIN?
    I have seen in the schematic that the connection is CH4(SDA) and CH5(SDL), but
    I see no direct connection to the output/input of the propeller

    Thanks for any help.

    Cheers,

    Jan Kromhout
    Hellevoetsluis-NL
  • Mike GreenMike Green Posts: 23,101
    edited 2012-08-06 08:56
    If you look again at the schematic, you'll see that SDA is also connected through a 1K resistor to P14 and SCL is connected through a 1K resistor to P15. You could put pullup resistors like 10K on these and attach an I2C device to the resulting bus. Any of the I2C drivers from the Object Exchange could be used although some of them (like Basic_I2C_Driver) assume that the SCL and SDA I/O pins are in the opposite order and the references (SDA := SCL + 1) have to be changed (to SDA := SCL - 1).
  • PowersoftPowersoft Posts: 72
    edited 2012-08-06 23:31
    Thanks for the help, but when I look at the schematic (pasc-e.pdf) I see only a text at pin 14 and 15. I cant see that ther is a connection between CH4 and CH5.
    But when I understand you right there is a connection between these pins, zo when I wont to use the ASC board and the I2C I use only to adress the right data to P14 and P15!

    Cheers,

    Jan Kromhout
    Hellevoetsluis-NL
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-08-07 11:32
    Propeller: OUTA[INA](14) <--> SDA on Arduino header "ANALOG IN 4".
    Propeller: OUTA(15) --> SCL on Arduino header "ANALOG IN 5".

    In some cases it is common in schematics to only list connections by name. This is done to reduce the "rats nest" appearance that can quickly form.

    There is an error on the schematic, it lists those resistors as 1K when they are actually 2.2K. I will correct that.

    Also there are two solder jumpers, just to the right of the crystal when looking at the back of the ASC. You will want to bridge those, upper to lower, with solder blob if you are using a 3.3 volt I2C circuit.

    5 volt --> solder bridge open
    3.3 volt --> solder bridge closed
  • cavelambcavelamb Posts: 720
    edited 2012-08-10 12:39
    ASC ADC question?

    I'm finally getting to experiment with it and wanted to try to implement a couple of knobs via the
    MPC3008. The OBEX yielded two objects -
    ....MCP3008.spin
    and
    .....ADC_INPUT_example_-_Archive__Date_2011.10.17__Time_15.59.zip
    by Brandon Nimon

    The latter has this suggested input circuit:
    ''* Example wiring would be as follows:                                             *
    ''*               R1                                                                *
    ''*     ADC&#61609;&#9472;&#9523;&#9472;&#9472;&#9523;&#9472;&#61629;&#61630;&#9472;&#61627;input                                                         *
    ''*       C1&#61612;&#61613;&#61614; &#61628;R2                                                                 *
    ''*          &#61464;  &#61464;                                                                   *
    ''* R1: 10K (high impedance input is helpful, 10K should be the minimum)            *
    ''* R2: 100K (this effectively creates a voltage divider, but also drives input to  *
    ''*     zero volts when not in use)                                                 *
    ''* C1: 0.01µF (10000pF is the about the maximum you would want to use. The         *
    ''* capacitor reduces jitter or spikes but also reduces resolution).                *
    

    So: I'm thinking a 10K pot, one end on +5, other end on ground and the wiper tied to the
    input of the above.


    Does that sound workable?
  • Martin HodgeMartin Hodge Posts: 1,246
    edited 2012-08-10 13:39
    You can use that input circuit if you want, I suspect it's there to reduce HF noise. But if you only need to poll the knob a few times a second, you can also connect the wiper directly to the 3008 and use the built in averaging method in MCP3008.spin. Try it both ways and see, you won't blow anything up with a 10K pot.

    For anyone wanting to fiddle with basic analog and digital I/O with the ASC, I highly recommend Sparkfun's "Danger Shield".
  • cavelambcavelamb Posts: 720
    edited 2012-08-10 14:27
    You can use that input circuit if you want, I suspect it's there to reduce HF noise. But if you only need to poll the knob a few times a second, you can also connect the wiper directly to the 3008 and use the built in averaging method in MCP3008.spin. Try it both ways and see, you won't blow anything up with a 10K pot.

    For anyone wanting to fiddle with basic analog and digital I/O with the ASC, I highly recommend Sparkfun's "Danger Shield".

    OOPS!
    Might be a problem with that soon...
    Retired RETIRED

    This product has been
    retired
    from our catalog
    and is no longer for sale.

    This page is made available
    for those looking for datasheets
    and the simply curious.
    Please refer to the description
    to see if a replacement part is
    available.


    How many do you have in stock??
  • cavelambcavelamb Posts: 720
    edited 2012-08-10 16:37
    I haven't gotten much love from Google today...
    But I finally did connect with Microchip about the 3008.
    Data sheet lives here...
    http://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf
    (since I didn't see it on the WIKI)
  • CircuitsoftCircuitsoft Posts: 1,166
    edited 2012-08-10 16:40
    The Danger Shield looks plenty available. I don't see it retired.
  • cavelambcavelamb Posts: 720
    edited 2012-08-10 19:54
    The Danger Shield looks plenty available. I don't see it retired.

    twas from what google turned up today... https://www.sparkfun.com/products/9597
    but the item number...

    Dunno CS.
    I may be stuck in a time warp.
    Causality is so messy.
  • PowersoftPowersoft Posts: 72
    edited 2012-08-11 01:25
    Hello,

    Knowes someone where to download the documentation for the MCP???? chip (Analog/Digital) that is on the ASC+ board.
  • cavelambcavelamb Posts: 720
    edited 2012-08-11 16:55
    Powersoft wrote: »
    Hello,

    Knowes someone where to download the documentation for the MCP???? chip (Analog/Digital) that is on the ASC+ board.

    http://ww1.microchip.com/downloads/e...Doc/21295d.pdf
Sign In or Register to comment.