Find Jobs
Hire Freelancers

Raspberry gpio & pigpio & nrf24l01+

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
Hello, I have two different python codes. (1) The 1st one is to control the moving of a very simple robot. The code is like below. Except the first line, all the “gpio” are lower cases. import [login to view URL] as gpio import time def init(): [login to view URL]([login to view URL]) [login to view URL](19, [login to view URL]) … def forward(tf): init() [login to view URL](19, True) … [login to view URL](tf) [login to view URL]() while (1): forward (4) [login to view URL] (4) (2) For the 2nd python code, I have nrf24l01 device, and I also use pigpio library. The nrf24l01 is to send and to receive data, and the pigpio library is to control some pins to do some works Import [login to view URL] as GPIO From lib_nrf24 import NRF24 Import time Import spidev Import pigpio pi = [login to view URL] () [login to view URL] ([login to view URL]) …. [login to view URL] (message) # this line to send data, AND IT HAS TRACEBACK ERROR …. [login to view URL](receivedMessage, [login to view URL]()) # this line to receive data … The 1st and 2nd codes are working perfectly when they are not coupled together, but when I place them together, it is not working. I change all “gpio” to “GPIO” in the first code before coupling the two codes together but it is still not working. Would you advise me what could be the reason? The error seems related to gpio setting of nrf24l01 device. I get pigpio library from [login to view URL], and nrf24l01 library is from [login to view URL]
Project ID: 17849279

About the project

4 proposals
Remote project
Active 6 yrs 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
If they are working separately but not working together, I would expect there are either issues with the pin settings for the GPIO, perhaps they are trying to use the same pins, or something with the variables getting mixed up. If you sent me your full code and could run it showing me the error codes, I can try to help you work through it.
$10 USD in 2 days
5.0 (1 review)
0.3
0.3
4 freelancers are bidding on average $39 USD for this job
User Avatar
Hello sir, I have experience in designing electronics circuits and can make your project. i will make your project completely on my side and will deliver a working prototype. I can also develop hardware compatible android and windows based apps. I can show you my previous experience on similar projects. If you wish we can discuss in chat. Thanks
$100 USD in 7 days
4.8 (43 reviews)
6.7
6.7
User Avatar
I will make this project quickly and efficiently. I have experience in IoT more than 5 years. Thank You
$10 USD in 1 day
5.0 (1 review)
2.8
2.8

About the client

Flag of UNITED STATES
PLEASANTON, United States
5.0
10
Payment method verified
Member since Aug 1, 2017

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.