Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at raspberry pi 3 #89

Open
Temeteron opened this issue Aug 17, 2017 · 4 comments
Open

Error at raspberry pi 3 #89

Temeteron opened this issue Aug 17, 2017 · 4 comments

Comments

@Temeteron
Copy link

I am using this library via a tutorial, which is working for everyone but me. So i thought that the problem is probably at the pi-blaster library.

After running:
./pi-blaster 22 && echo "22=1" > /dev/pi-blaster
where pi-blaster is the executable of the pi-blaster.c,
i got the following output:

Using hardware: PWM
Number of channels: 1
PWM frequency: 100 Hz
PWM steps: 1000
Maximum period (100 %): 10000us
Minimum period (0.100%): 10us
pi-blaster: Page 0 not present (pfn 0xa100000000016864)

I am not understanding what is the meaning of the last line. ???

By trying the command:
echo "22=1" > /dev/pi-blaster
i got no output and the servo motor didn't work.

Thanks in advance

@Temeteron
Copy link
Author

I found the problem. The tutorial i was using probably had an older version of this library.

Nevertheless, please comment about the meaning of the last line of the output:
pi-blaster: Page 0 not present (pfn 0xa100000000016864)

@mvelebit
Copy link

Could you post the fix which you utilized? Thanks in advance

@Temeteron
Copy link
Author

This worked for me:

echo "0=0.1" > /dev/pi-blaster

A full running example on an aquarium can be found here, which contains an implementation that combines some of the tutorials of resin. More specifically a nodeJs server with a frontend and the pi-blaster module to control a servo motor through a web page and eventually feed your fishes.

@polymathuk
Copy link

I am having the exact same problem. The command outputs:

Using hardware:                   PWM
Number of channels:                 1
PWM frequency:                 100 Hz
PWM steps:                       1000
Maximum period (100  %):      10000us
Minimum period (0.100%):         10us
pi-blaster: Page 0 not present (pfn 0xa100000000015c1e)

The file pi-blaster.c contains a function make_pagemap(void) which I assume generates the error line, but I have no idea what it means. I'm not getting a process running in top for pi-blaster and assigning values like:
echo "1=0.2" > /dev/pi-blaster
has no effect on the actual pins.
Using a 1.12 Pi from 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants