Shop OBEX P1 Docs P2 Docs Learn Events
Tiny Two Wire and Propeller Peripheral Playground Modules — Parallax Forums

Tiny Two Wire and Propeller Peripheral Playground Modules

jazzedjazzed Posts: 11,803
edited 2010-10-31 19:16 in Propeller 1
I'm designing more modules for the GadgetGangster Propeller Platform footprint.
I've mentioned these modules in other threads such as I2C Keyboard/Mouse.

Two boards I'm developing are shown in this thread:
The "Tiny Two Wire" module and "Propeller Peripheral Playground" module.


The Tiny Two Wire module is a simple board having an atTiny84 and connectors.

Tiny Two Wire module feature set:
    Allows connecting PS2 compatible keyboard/mouse to Propeller pins P28/P29.
    Includes dual PS2/USB connector footprint for PS2 compatible devices.
    It is not possible to host USB devices with the Tiny Two Wire module.
    Allows connecting up to 8 more pins to Propeller via the atTiny84 over I2C .
    Allows connecting 4 40uV resolution 10 bit ADC channels to Propeller.

Both Tiny Two Wire and Propeller Peripheral Playground boards will be
able to run the I2C Keyboard/Mouse firmware discussed in this thread:
http://forums.parallax.com/showthread.php?t=124704


The Propeller Peripheral Playground module is fairly complex,
but should be a good addition to our product/project mix.

Propeller Peripheral Playground module feature set:
    QFP Propeller, atTiny84, SDCARD, PS2 ports, ADC connecor, USB-A ports.
    USB ports are host ports that should work with Micha's 12Mb/s USB driver.
    The module can be used on the Propeller Platform or be used stand-alone.
    Propeller can be an I2C slave device or be used stand-alone.
    Propeller interfaces to: EEPROM, SDCARD, USB ports, PS2 ports, atTiny84.
    atTiny84 I2C slave device for PS2 Keyboard/Mouse/ADC.
    atTiny84 is a DIP14 and can be programmed in circuit with ATDRAGON or Propeller.

One use of the boards is in support of Cluso99's I2C intelligent peripherals thread here:
http://forums.parallax.com/showthread.php?t=126484

One USB port should work (hopefully both) with as a real USB host with
Micha's (scanlime) 12MB/s USB host software here:
http://forums.parallax.com/showthread.php?t=121321

Hopefully someone can get a real USB keyboard & mouse working on Propeller.
So much to do, so little time.

Cheers.
--Steve

Comments

  • jazzedjazzed Posts: 11,803
    edited 2010-10-28 13:35
    Here's a layout minus bottom layer.

    attachment.php?attachmentid=74777&stc=1&d=1288301154
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-10-28 21:08
    jazzed: Sorry I dont have time to check the pcb but here are a few suggestions...

    The PS2 footprint and USB-A footprint can be overlayed so either can be fitted. There is 1 link required for USB and 1 for PS2. IIRC I have published this somewhere (try my recent pcb thread with the TVBlade cct)?? If you then link the 2 PS2 pullup resistors to +5 or GND, it makes it PS2 or USB mode. Note most, but not all USB keyboards work in PS2 mode. I am only fitting USB connectors from now on.

    For the ATtiny84, can you bring out the 4 ADC pins to a compatible 6 pin header? - my preference is the PMod which has P1-4,Gnd,+3V3/+5V. The dual NES pcb by Parallax has 5v & Gnd reversed to this. This gives you a few more options.

    May get some time in the next few days provided I have internet. I am sailing from SOuthport (100km south of Brisbane) to Sydney :smilewinkgrin:
  • jazzedjazzed Posts: 11,803
    edited 2010-10-28 21:47
    Cluso99 wrote: »
    The PS2 footprint and USB-A footprint can be overlayed so either can be fitted.
    Great idea ! I'll try that :)
    Cluso99 wrote: »
    For the ATtiny84, can you bring out the 4 ADC pins to a compatible 6 pin header? - my preference is the PMod which has P1-4,Gnd,+3V3/+5V. The dual NES pcb by Parallax has 5v & Gnd reversed to this. This gives you a few more options.
    I'll look into the PMod connector.

    I'm spinning another board that has only an atTiny84 + PS2 for the Propeller Platform.
    A separate PMod fab would be pretty easy to do. I've included a preliminary snapshot of that here.

    attachment.php?attachmentid=74785&stc=1&d=1288327426
    543 x 444 - 28K
  • Bill HenningBill Henning Posts: 6,445
    edited 2010-10-29 06:08
    Looks good - only two suggestions:

    Add a fifth pin to the PropPlug connector (opposite side from GND) then the board will take all of my comm modules (SerPlug, 485Plug, more in the future)

    You could also add a 4-pin I2C expansion connector like I have on my boards:

    pin 1: +3.3V
    pin 2: SDA
    pin 3: SCL
    pin 4: GND

    I don't have any modules for this YET (<--- note the emphasis on YET)
    jazzed wrote: »
    Here's a layout minus bottom layer.

    attachment.php?attachmentid=74777&stc=1&d=1288301154
  • jazzedjazzed Posts: 11,803
    edited 2010-10-29 08:06
    @Cluso99, I don't see your PS2/USB-A schematic. It seems to me a USB connector designed for PS2 would need the same electrical interface as PS2 with pull-ups. It is not clear to me whether the USB keyboard/mouse has it's own pull-ups or not. Since the atTiny84 will never be a USB host (or a device without an external crystal), keeping the PS2 pull-ups seems best.

    @Bill, I'll add extra pins/connectors where there is room for them. Clearly the topic board is packed, but the simpler board has plenty of room.
  • jazzedjazzed Posts: 11,803
    edited 2010-10-29 10:39
    Here's an updated "Tiny Two Wire" module png.

    Included is the option to use USB-A connectors instead of PS2 for keyboard
    and mouse. The connectors will never be able to host a real USB device.
    The device must be PS2 compatible to function in a USB connector.

    I've added 2 of Bill's connectors with selectable voltage source.

    The PMod connectors are attractive, but I've decided not to include it.
    To me, a fully PMod compliant interface is another board entirely.
    The 6 pin connector pin-out is similar to the PMod.

    Cheers.

    attachment.php?attachmentid=74789&stc=1&d=1288373567
    687 x 460 - 159K
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-10-30 08:07
    Great work Steve.

    The idea of the pmod is so other pmod pcbs could perhaps used. For that you need to be able to link either 5V or 3v3.

    Of course you are correct that you only want PS2 mode.

    Currently it's 1am and I am 10NM off Ballina (the New South Wales, Australia) - sailing at about 7 knots out to sea on my catamaran :smilewinkgrin:
  • John A. ZoidbergJohn A. Zoidberg Posts: 514
    edited 2010-10-30 08:09
    That's a cool idea. :D

    By the way, anyone tried with putting a USB Bootloader/System into a PIC18F14K50, and then connect to the Propeller?
  • jazzedjazzed Posts: 11,803
    edited 2010-10-30 09:34
    Enjoy your cruise Cluso99!
    By the way, anyone tried with putting a USB Bootloader/System into a PIC18F14K50, and then connect to the Propeller?
    Tubular posted a thread about that using a PIC18F27J53.
    http://forums.parallax.com/showthread.php?p=947485

    BTW, I really enjoy Futurama.
  • John A. ZoidbergJohn A. Zoidberg Posts: 514
    edited 2010-10-30 10:03
    jazzed wrote: »
    Enjoy your cruise Cluso99!


    Tubular posted a thread about that using a PIC18F27J53.
    http://forums.parallax.com/showthread.php?p=947485

    BTW, I really enjoy Futurama.

    I see. I have a spare of those 18F14K20s lying around. All I need to do is to load up the USB driver inside (yeah, not any easy, I admit) and then interface to the Prop. Similarly, it's like a cheap USB->Serial converter. Is it a feasible idea?

    off topic: Yeah, I really enjoy Futurama too. :lol:
  • jazzedjazzed Posts: 11,803
    edited 2010-10-30 11:17
    Is it a feasible idea?
    I'm not qualified to answer that. I did buy a PIC32 starter kit recently though.
  • jazzedjazzed Posts: 11,803
    edited 2010-10-31 13:40
    Here is the latest TinyTwoWire module gerber pic. This is labeled A1 so it's
    probably going to production as is unless there is a really important change.

    Some notes:
    1. TWI-1 and TWI-2 connectors are I2C compliant and follow Bill's pinout.
    2. The 5.0V/3.3V header allows selecting the TWI header voltage.
    3. SDA/SCL jumpers are there in case ISP fails (works for me with R3/R4 1K).
    4. VTG is jumpered for AVRDRAGON but other programmers may need it open.
    5. ID-RESET allows reseting the device ID if shorted at power-up.
    6. Users choose USB or PS2 connectors.
    attachment.php?attachmentid=74878&d=1288556751
    603 x 529 - 215K
  • Cluso99Cluso99 Posts: 18,069
    edited 2010-10-31 17:58
    Nice work Steve. I will think a little more today, particularly with my comments to you on the MonoBade thread.
  • Bill HenningBill Henning Posts: 6,445
    edited 2010-10-31 18:21
    Looks good!
    jazzed wrote: »
    Here is the latest TinyTwoWire module gerber pic. This is labeled A1 so it's
    probably going to production as is unless there is a really important change.

    Some notes:
    1. TWI-1 and TWI-2 connectors are I2C compliant and follow Bill's pinout.
    2. The 5.0V/3.3V header allows selecting the TWI header voltage.
    3. SDA/SCL jumpers are there in case ISP fails (works for me with R3/R4 1K).
    4. VTG is jumpered for AVRDRAGON but other programmers may need it open.
    5. ID-RESET allows reseting the device ID if shorted at power-up.
    6. Users choose USB or PS2 connectors.
    attachment.php?attachmentid=74878&d=1288556751
  • TubularTubular Posts: 4,717
    edited 2010-10-31 19:16
    Hi John,

    As Jazzed noted I did start playing with this on a PIC18F47J53 PIM module (microchip MA180029). I'm following the USB bootloader approach where the Prop Binary is dropped onto the PIC which is emulating a mass storage device (so no special drivers needed on the PC). The PIC then loads the Prop via the serial interface, although I2C may also be possible.

    Unfortunately I pushed a bit hard and must have written over something on the PIC PIM module as it no longer boots into mass storage mode. I have the factory .hex file, but the device does not seem to be supported yet in PicKit2, so I had to put it to one side for the moment.

    I think Starlino also did a PIC based programmer or loader - details were on the Gadget Gangster site which points to here http://www.starlino.com/usbthumb_propeller_programmer.html

    cheers
    tubular


    That's a cool idea. :D

    By the way, anyone tried with putting a USB Bootloader/System into a PIC18F14K50, and then connect to the Propeller?
Sign In or Register to comment.