Skip to content

Commit

Permalink
Added report and pics of PCB
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavA10 committed Dec 17, 2018
1 parent ee6c639 commit 1002ba5
Show file tree
Hide file tree
Showing 65 changed files with 9 additions and 7 deletions.
Binary file added docs/MyNotes/Circuit Design - Notes.pdf
Binary file not shown.
Binary file added docs/MyNotes/Notes about Mechanics.pdf
Binary file not shown.
Binary file not shown.
Binary file added docs/PS2_Interface_Report.pdf
Binary file not shown.
16 changes: 9 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# PS2-RC-Car
This is a project that controls an RC Car, from a wireless PS2 controller.

The current project purpose is being able to send data back and forth on the PS2 controller.
The current project purpose is being able to send data back and forth on the PS2 controller. The report I created can be viewed [here](https://github.com/AbhinavA10/PS2-RC-Car/blob/master/docs/PS2_Interface_Report.pdf)

Some video demos of this project can be seen by downloading the files [here](https://github.com/AbhinavA10/PS2-RC-Car/blob/master/images_other/Test_videos)

The circuit board I designed for this project was found on circuits.io. However, since then the service has been deprecated. My circuit is still available for viewing in the [images folder](https://github.com/AbhinavA10/PS2-RC-Car/blob/master/images_other/CircuitDesign_completed)

## Notes on PS2 Interface

- PIC Microcontroller is the master
- PS2 Controller is the slave

The MSSP/SPI Module in the PIC16F1459, transfers the MSB first (p197 of the datasheet). However, the PS2 protocol is to transfer LSB first. So, the SPI module was avoided (even though it was originally programmed to be used), and I have now manually set pins, etc.

The circuit board I designed for this project can be found [here](https://circuits.io/circuits/5553911-rc-car)

## Notes on PS2 Interface

### Vocabulary
- Bit: one binary value
- Nibble: 4 bits
Expand Down Expand Up @@ -151,7 +153,7 @@ These main commands are sent in Byte2.
- BYTES5->9 = `0x5A`
- Config modes are always 9byte packets

#### Recommended sequence to switch from digital to analog mode
#### Sequence to switch from digital to analog mode
1. Digital Poll (three times for initiation and refresh)
2. Enter configuration mode
3. Switch to analog mode and lock the analog mode
Expand All @@ -164,7 +166,7 @@ These main commands are sent in Byte2.

- [Gamesx PS2 Controller Protocol](https://www.gamesx.com/controldata/psxcont/psxcont.htm)
- [CuriousInventor's Protocol Explanation](http://htmlpreview.github.io/?https://github.com/AbhinavA10/PS2-RC-Car/blob/master/docs/Sources/Interfacing%20a%20PS2%20(PlayStation%202)%20Controller%20-%20CuriousInventor%20Tutorials.html) Note: this is not my website, I had saved the old version of their site, and am using it as such
- [Playstation Servo Controller Interface](docs/Sources/playstation-servo-controller-interface.pdf)
- [Playstation Servo Controller Interface](Sources/playstation-servo-controller-interface.pdf)
- [PIC16F1459 Datasheet](docs/Sources/PIC16F1459 Data Sheet.pdf)
- [Checking if a bit is set, in a byte](https://www.gamedev.net/forums/topic/657315-checking-if-a-bit-is-set-in-a-byte/)
- [Bit Field - Wikipedia](https://en.wikipedia.org/wiki/Bit_field)
Binary file added docs/STL_TireDesign/Tire V1.stl
Binary file not shown.
Binary file added docs/STL_TireDesign/Tire V2.stl
Binary file not shown.
Binary file not shown.
Binary file added images_other/CircuitDesign_completed/V1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/CircuitDesign_completed/V2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/CircuitDesign_completed/V3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/CircuitDesign_completed/V4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/CuttingPCB_VID_20180110_105333.mp4
Binary file not shown.
Binary file added images_other/IMG_20180110_105214.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180110_105216.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180110_105225.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180111_100513.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180111_201627.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180112_101510.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180112_101816.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180112_101828.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180112_183653.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180112_183701.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180116_151600.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180123_000927.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180123_105321.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180123_151134.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images_other/IMG_20180123_151143.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added images_other/PCB_RPC2_IMG_20181217_170919.jpg
Binary file added images_other/PCB_RPC_IMG_20181217_170909.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 1002ba5

Please sign in to comment.