Obed Vazquez
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Interface This is a library (Right now has a proof of concept) that will allow a more direct and easy approach to use USB Devices, and more specifically, the link between java and a PIC. ## 1) What is this repository for? ### 1.1) Quick summary Version: `0.1-SNAPSHOT` <!-- TODO: Add detailed description of your app. --> ### 1.2) Disclosure This is a private repository, you will require written authorization to use this library. ## 2) How do I get set up? ### ### 2.1) Summary of set up The technologies the project is using. #### 2.1.1) Development environment - DataBase: *No Database is used at the moment* - Maven: [*Last Version*](https://maven.apache.org/) ##### 2.1.1.1) Java - version: `1.8` ##### 2.1.1.2) CCS Compiler - Version `5.076` #### 2.1.2) Project Dependencies This library uses: - **lombok** to log errors and general logs. - **Slf4j** - **White_Validations** to validate parameters. - **Spring boot** - [**usb4java-javax**](https://github.com/usb4java/usb4java-javax). an extension to [usb4java](http://usb4java.org/). - [**javax-usb**](https://github.com/KeyBridge/lib-javax-usb3). *These are the core libraries that makes this communication possible.* - [libusb](https://libusb.info/) is a C library that provides generic access to USB devices. ##### 2.1.2.2) CCS Compiler - **18F4550** PIC18F4550 - **HCSR04** Ultrasonic distance sensor - **usb_cdc** USB CDC communication ##### 2.1.2.3) Hardware - PIC18F4550 - HCSR04 ### 2.2) Configuration Steps 1) Configuration 1) CCS Compiler 1) Clone the proyect 2) Install [CCS Compiler](https://www.ccsinfo.com/compilers.php) 3) Install [PICkit 3 Programmer](https://microchipdeveloper.com/pickit3:scripttool) (***preferred***) or a similar 4) Replicate the coniguration shown on the Diagram with your **PIC18F4550** 2) Java 1) Install **Maven** 2) Deploy Project 1) Compile CCS Compiler the proyect 1) Open [the CCS project](https://github.com/WhiteOrganization/interface-cpu-pic/tree/main/ccscompiler-src) [.ccspjt file](https://github.com/WhiteOrganization/interface-cpu-pic/blob/main/ccscompiler-src/USB_CDC.ccspjt) using **CCS Compiler** 2) Go to *Compile* tab 3) Press *Build* button 2) This will generate a compiled `.hex` file in the [CCS project folder](https://github.com/WhiteOrganization/interface-cpu-pic/tree/main/ccscompiler-src). 3) Load the programming configuration into the PIC with **PICkit 3 Programmer** 1) Plug the **PICkit 3 Device** to the **PIC18F4550 preconfigured MicroProcessor**, and to the computer. 2) While plugged-in, open the **Programmer** - if **PIC18F4550** is not detected (*Device* label will be empty). Go to the *Tools* menu, and press *Check Communication* to retry. 3) Press *Erase* button to clean any previous programmed configuration in the PIC 4) Press *Blank Check* button for confirmation (it will show a small green screen with a message). 5) loading `.hex` file: *File* > *Import Hex*, and load the `.hex` file (generated in a previous step). 6) Press *Write* button 7) Press *Verify* button, to confirm that the proggram is loaded (it will show a small green screen with "*Verification Successful*" message). 8) Confirm that *VDD PICkit 3*>*On* checkbox is unchecked, before proceeding or it might burn your PIC when pluggin the USB 9) Disconnecting the *PICkit 3*. 3) Extra Steps 1) Plug *PIC18F4550* directly to the computer running the app. 4) Compile, Deploy, and execute the project with [maven](https://spring.io/guides/gs/maven/) to compile and run the project. ## 3) How to Deploy? The Configuration steps show how to deploy both projects. ## 4) What are the Contribution guidelines? #### 4.1) Writing tests. _Please do. No UT defined at the moment._ #### 4.2) Code review. _Request if needed._ #### 4.3) Other guidelines. _Please ask for the code standard to use as guideline and reflect it in the project._ ## 5) Who do I talk to? <table> <thead><tr><th><b>Role</b></th> <th><b>Contact</b></th></tr></thead> <tr><td>admin</td><td>current main developer: <a href='mailto:obed.vazquez@gmail.com'>obed.vazquez@gmail.com</a></td></tr> <tr><td>admin</td><td>current main developer: <a href='mailto:jhonatan.isai.v.l@gmail.com'>jhonatan.isai.v.l@gmail.com</a></td></tr> <tr><td>Supporters</td><td>Currently there is no other supporters with knowledge of the project</td></tr> <tr><td>Community</td><td> send us a message in <a href='http://discord.whiteweb.tech'> our Discord Server</a></td></tr> </table> >Please contact us if you want to help, We are developing and maintaining and supporting in general this project on our own with no help or support of anyone and any tip, comment, change or help in general is well-received.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully