Microprocessor programming using a PIC32 MX795F-512L
This project was awarded to elfasoft for $515 AUD.Get free quotes for a project like this
Project Budget$250 - $750 AUD
I need a MPLABx Project made for a MX795F-512L microprocessor using ethernet, WIFI, USB and general I/O.
- UART2 receives a signal every second from an additional AVR microprocessor at 115200 baud which consists of a string as listed below.
String looks like this 2100:5,3200:4 = timeA,countA,timeB,countB. (String contains 12 counts and times, but only the first 4 are used)
These times and counts relate to the pulse outputs of meters. The program then needs to work out from these figures the kWh value for each of the first 4 figures. Each of the 4 meters can potentially be a different number of pulses per kWh therefore this setting needs to be adjustable via a USB menu through UART1 of the microprocessor.
The resulting figures are collected and stored for each meter in two fields. kWhSinceLastRead and kWhSincePowerUp. The since power up field simply continues totalling until the unit loses power. The since last read field is reset each time a successful connection and transmission to software is performed.
Each meter also has a corresponding output used to lock and unlock it. These outputs are from outputs 1 to 4 on the MX7 processor as indicated in the schematics.
Software communication is via TCP using either the hardwired network interface or the Wifi interface. A server is created on port 11060 for the software to communicate with using a series of ascii strings for commands. The network setup needs to be able to be set using a menu system via USB through UART1 of the microprocessor.
Attached document contains the communication protocol between software and device. Where PULSS is used it refers to the software where PULSD is used it refers to the microprocessor.
6 inputs are referred to in the protocol document but the hardware schematics refer to only 4 inputs. additional 2 inputs are for future use.
The inputs provide only open and closed status using 1 or 0.
All activity is also logged to UART1 during operation.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online