Difference between revisions of "TinyPS2"

From Land Boards Wiki
Jump to navigation Jump to search
Line 46: Line 46:
 
=== TinyPS2V01 ===
 
=== TinyPS2V01 ===
  
* [https://www.pjrc.com/teensy/td_libs_PS2Keyboard.html PJRC library]
+
* [https://www.pjrc.com/teensy/td_libs_PS2Keyboard.html PJRC PS/2 library]
 
* [https://github.com/land-boards/lb-Arduino-Code/tree/master/LBCards/TinyPS2/TinyPS2V01 Read PS/2 print to screen]
 
* [https://github.com/land-boards/lb-Arduino-Code/tree/master/LBCards/TinyPS2/TinyPS2V01 Read PS/2 print to screen]
 
* Resources
 
* Resources
Line 52: Line 52:
 
Sketch uses 3334 bytes (10%) of program storage space. Maximum is 32256 bytes.
 
Sketch uses 3334 bytes (10%) of program storage space. Maximum is 32256 bytes.
 
Global variables use 377 bytes (18%) of dynamic memory, leaving 1671 bytes for local variables. Maximum is 2048 bytes.
 
Global variables use 377 bytes (18%) of dynamic memory, leaving 1671 bytes for local variables. Maximum is 2048 bytes.
 +
</pre>
 +
 +
=== TinyPS2V02 ===
 +
 +
* [https://www.pjrc.com/teensy/td_libs_PS2Keyboard.html PJRC PS/2 library]
 +
* [https://docs.arduino.cc/learn/built-in-libraries/software-serial Software Serial library]
 +
* Resources
 +
<pre>
 +
Sketch uses 3490 bytes (10%) of program storage space. Maximum is 32256 bytes.
 +
Global variables use 241 bytes (11%) of dynamic memory, leaving 1807 bytes for local variables. Maximum is 2048 bytes.
 
</pre>
 
</pre>
  

Revision as of 10:27, 4 May 2022

TinyPS2 P899 cropped-720px.jpg

Features

  • PS/2 keyboard or mouse to TTL Level Serial converter
  • ATTiny85
    • 8 KB of flash
    • 8-MHz internal RC oscillator that can be used as the default clock
    • 512 bytes of EEPROM
    • 512 bytes of SRAM
  • 115,200 baud
  • 49x49mm ODAS form factor
  • 4-40 mounting holes

Connectors

J1 - TTL Serial Connector

  1. 5V
  2. SERTX
  3. N/C
  4. GND

J2 - PS/2

  • Standard PS/2 Mini-DIN-6 connector

H2 - In-System Programming Header

  • SPI connector to download ATTiny85
  • 2x3 header
  • Program ATTiny85 without PS/2 keyboard attached
  • Pinout
  1. KBCLK
  2. GND
  3. SERTX
  4. KBDAT
  5. RST*
  6. GND

Firmware

TinyPS2V01

Sketch uses 3334 bytes (10%) of program storage space. Maximum is 32256 bytes.
Global variables use 377 bytes (18%) of dynamic memory, leaving 1671 bytes for local variables. Maximum is 2048 bytes.

TinyPS2V02

Sketch uses 3490 bytes (10%) of program storage space. Maximum is 32256 bytes.
Global variables use 241 bytes (11%) of dynamic memory, leaving 1807 bytes for local variables. Maximum is 2048 bytes.

Other People's Videos

Schematic

Issues

  • Missing pull-up resistors on PS/2
    • Rev 2 - add pull-up resistors
  • Missing C3 cap in sequence
    • Rev 2 - change C4 => C3

Assembly Sheet