Browsed by
Tag: microcontroller

POM PPM Parking Meter

POM PPM Parking Meter

I found this parking meter at Princess Auto yesterday. Made by POM Inc., this meter is called the PPM.

I got it to work by adding a rubber band with just enough tension to depress the turn-detect lever when the lever is turned. The meter has knobs where a tensioned spring was attached. I’ll have to find a decent spring somewhere.

Opening it up, I found that the coin detector uses a series of armatures and four switches to detect which coin was inserted.

Upon examination, it has 6 buttons:

  • (Top Left) Yellow button for debug output
  • (Bottom Left) Yellow button for turn-sense
  • White buttons (4) for coin sense

When a Quarter is inserted into the proper slot and the arm is turned…

  1. As the coin lever is turned, the turn button is pressed.
  2. As it passes the buttons, the quarter makes the arm hit all 4 white buttons, in a clockwise order starting with the top left.
  3. When the turn lever is released, it returns to its original position, and releases the turn button.

When a Dime is inserted into the proper slot and the arm is turned…

  1. As the coin lever is turned, the turn button is pressed.
  2. As it passes the buttons in a clockwise order starting with the top left, the quarter makes the arm skip the first white button, and hits the remaining 3 white buttons.
  3. When the turn lever is released, it returns to its original position, and releases the turn button.

When a Nickel is inserted into the proper slot and the arm is turned…

  1. As the coin lever is turned, the turn button is pressed.
  2. As it passes the buttons in a clockwise order starting with the top left, the quarter makes the arm skip the first 2 white buttons, and hits the remaining 2 white buttons.
  3. When the turn lever is released, it returns to its original position, and releases the turn button.

When you press the Debug button, the front LCD shows the following:

  1. Test pattern: “c2:2c”, where the last ‘c’ is backwards.
  2. Firmware Version?: “0159”, also the number writen on a sticker on top of the ST27C256
  3. Parking Limit: “0002”, maximum number of hours allowed to park
  4. Route?: “0321”, also printed on a sticker on the back of the meter. This was the same for other meters i saw.
  5. Unknown: “8:5”, “8:6”

Interesting innards:

LCD/LEDs

  • LCD1: LCD, Front: 4-digit, “88:88” LCD
  • LCD, Back: Red, Clear background. No text.
  • D3: Red LED, (clear casing)
  • D4: IR LED
  • D5: IR Sensor

Switches

  • SW5,6: Yellow Switches (Surface mount)
  • SW1,2,3,4: White Switches (Surface mount)

ICs

  • U6: Motorola MC14519B – Four bit AND/OR selector
  • U2: Motorola MC14521B –
  • U7: Motorola MC145453FN – LCD 33-Segment LCD Driver, Serial, CMOS
  • U5: Motorola MC68HC11A1FN – Motorola 8-bit Microcontroller, 256 Kbit RAM, A/D converter, EEPROM
  • U4: Fairchild MM74HC373WM

    – 3-STATE Octal D-Type Latch

  • U3: THMOS ST27C256 – 256Kbit (32Kx8) CMOS 3-STATE (UV-Erasable?) EPROM
  • U1: 271BC – Programmable Low-Power OP-Amp
  • U8: Motorola HC20 – Dual 4-input NAND gate
  • U9: 74HC02M – Quad 2-Input NOR Gate

Headers

  • J2: 4-pin header
  • JP4, JP3, JP2, JP1: Jumpers, unpopulated, to ground certain pins on U5

See also:
http://www.globalnerdy.com/2008/07/17/rubyfringe-guide-active-surplus-aka-hardware-nerdvana/
Pics in action:
http://www.sonomatlc.org/Parking/PBDs/Pkg_Benefit_Districts.htm
http://www.dkimages.com/discover/DKIMAGES/Discover/Home/Geography/North-America/United-States/Travellers-Needs/Practical-Information/Transportation/Roads/Chicago/Parking-Meter/Parking-Meter-1.html

Microchip 16-bit Embedded Design Contest Kit

Microchip 16-bit Embedded Design Contest Kit

Woo! I got my contest kit for the Microchip 16-bit Embedded Design Contest.

According to their website, each contest kit contains:

  • Four 28-pin 16-bit processors with a wide range of features:
Product Pins Flash RAM ADC PWM UART/SPI/I2CTM CodeguardTM Security
PIC24FJ64A002 28 64KB 8KB 10-bit STD 2 ea
dsPIC30F2010 28 12KB 512B 10-bit Motor/Power 1 ea
dsPIC30F2012 28 12KB 512B 12-bit STD 1 ea
dsPIC30F2020 28 12KB 512B 10-bit Motor/Power 1 ea Yes
  • Seventeen Bonus Parts to boost your overall score and permit you to
    compete for the optional “Bonus Part” category prize:
Device Description Package
Analog
MCP9700 Voltage Output Temp Sensor 5-ld SC-70
MCP9800 Serial Output Temp Sensor 5-ld SOT-23
TC4427A Low-Side MOSFET Driver 8-ld SOIC
MCP608 Precision, Dual Op Amp 8-ld SOIC
MCP6022 10MHz, Dual Op Amp 8-ld SOIC
MCP6S26 6-Channel PGA 14-ld SOIC
MCP3421 18-bit Del-Sig ADC 6-ld SOT-23
MCP4011 6-bit, Volatile Digipot 8-ld SOIC
Communications Peripherals
ENC28J60 10BASE-T SPI Ethernet Controller 28-pin SPDIP
MRF24J40 IEEE 802.15.4TM RF Transceiver 40 pin QFN
Memory
24LC01BT-I/OT 1Kbit I2C serial EEPROM 5-ld SOT-23
24LC16BT-I/OT 16Kbit I2C Serial EEPROM 5-ld SOT-23
24LC512-I/SM 512Kbit I2C Serial EEPROM 8-ld SOIC(207 mil)
93LC46BT-I/OT 1Kbit Microwire Serial EEPROM 6-ld SOT-23
93LC66B-I/SN 4Kbit Microwire Serial EEPROM 8-ld SOIC
25LC010A-I/SN 1Kbit SPI Serial EEPROM 8-ld SOIC
25LC256-I/SN 256Kbit SPI Serial EEPROM 8-ld SOIC
  • Contestant Resource CD: This CD contains a wealth of tools, libraries and educational resources to
    create an outstanding submission in minimal time.  This CD is a must even
    if your intention is only to evaluate Microchip’s 16-bit product lines. 
    It contains:
    • A fully enabled C compiler. Full features are retained for the duration of
      the Contest (through October).  This beats buying one for $895!
    • Microchip’s complete MPLAB Integrated Development
    • Communication and File Management Stacks
    • Math and DSP Libraries
    • Links to downloadable advanced libraries (Software Modems, Speech
      Compression, much more – all free for you to use in the contest)
    • Application Notes and code examples
    • FilterLab and DSP visualization tools
    • Self-education to ramp your learning on Microchip’s 16-bit products
    • Data sheets and reference manuals for all the 16-bit parts
    • Much more
  • Coupons for Steep discounts on development tools: Now you can be set
    up with a full development environment including programmer, debugger,
    development board, C compiler, full access to libraries for under 100
    dollars.
Car Alarm Interface (Work In Progress)

Car Alarm Interface (Work In Progress)

I bought the CodeAlarm CA-145 off eBay for a reasonable price, but since I just installed a better, more expensive alarm system, and since the CA-145 is an “expansion pack”, not a system by itself, I figured I could hack around with it a bit 🙂

It came with a nice multi-tone siren, a 2-way remote, and a receiver for the remote, so I figure I can delve into the wild world of PIC microcontrollers by starting off with an interface between the input/output lines of my installed car alarm, a PIC, and the 2-way interface for the remote.

More on this page as it happens 🙂