Find Jobs
Hire Freelancers

Really simple C++ Arduino Question -- 2

$10-30 CAD

Completed
Posted over 1 year ago

$10-30 CAD

Paid on delivery
I have a function that returns an integer value which can be negative or positive. I need to pass the integer over Arduino hardware serial and store it in an integer on the receiving Arduino. However serial only allows to send 1 8 bit byte at a time as a 8 bit unsinged integer so negative values get messed up.
Project ID: 35700810

About the project

4 proposals
Remote project
Active 1 yr ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
To transmit negative numbers over serial, you can use two's complement representation. Two's complement representation is a way to represent negative numbers in binary. To find the two's complement representation of a negative number, you can first find the absolute value of the number in binary. Then, you can invert all the bits and add 1 to the result. For example, to find the two's complement representation of -5, you can first find the binary representation of 5, which is 101. Then, you can invert all the bits to get 010, and add 1 to get 011. The two's complement representation of -5 is therefore 011. I have a script if you want it hire me!!!!!!!!!!!!!!!!!!!!
$30 CAD in 7 days
0.0 (0 reviews)
0.0
0.0
4 freelancers are bidding on average $23 CAD for this job
User Avatar
Hi! I'm a certified embedded systems Engineer with 7years experience in the field and very good knowledge on microcontrollers like esp32, arduino, stm32...etc; I also have experience in designing PCB with good signal integrity using Altium, kicad and easyEDA. I bid on your project because I have the expertise to deliver a quality work in a very short time. Please, respond to the offer so that we can discuss details of your project. I'm a perfectionist and I'm ready to start your work immediately. Thank you in advance. Best Regards
$20 CAD in 1 day
5.0 (10 reviews)
3.2
3.2
User Avatar
Hi, how are you doing? I am Michael, I have carefully read through the description of your project, I am interested and fully capable of executing it with my array of skillsets. - Arduino - C++ - C I have successfully performed similar projects in the past. I would be delighted to engage in a conversation about the project. Dm me for a 15-30 minutes chat about your project, I would love to share my solution(s) with you. Thanks
$20 CAD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I realized your task well. I can give you a correct and powerful solution. let us chat to discuss further details. thank you
$20 CAD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
merrickville, Canada
5.0
1
Payment method verified
Member since Oct 5, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.