[beagleboard] square wave output PWM but voltage change to 5V

2019-05-02 Thread quiteadream

I am outputting three square waves and I need to change the output voltage 
into 5V. Is there any way I can change the voltage?
 
I use Cloud9

Here is my code:
 

var b = require('bonescript');
b.pinMode('P9_14', b.ANALOG_OUTPUT);
b.analogWrite('P9_14', 0.5, 1000, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

var b = require('bonescript');
b.pinMode('P9_22', b.ANALOG_OUTPUT);
b.analogWrite('P9_22', 0.5, 1500, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

b.pinMode('P9_16', b.ANALOG_OUTPUT);
b.analogWrite('P9_16', 0.5, 2000, printJSON);
function printJSON(x) { console.log(JSON.stringify(x)); }

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0532e196-d5b2-4e9b-b029-bd6fa3ef5e3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] analogWrite not working ERROR: Exception: Please perform setTargetAddress on a valid target

2019-04-06 Thread quiteadream

I am trying to run the code below on my beaglebone black but it is not 
working

*var b = require('bonescript');*
*b.analogWrite('P9_14', 0.7, 2000, printJSON);*
*function printJSON(x) { console.log(JSON.stringify(x)); }*

but I am getting this error

*Exception: Please perform setTargetAddress on a valid target*

Does anyone know what I did wrong?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4b5ea172-ebd4-403b-ad74-f0d7433ef06b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] unable to login to root after I updated my beagle board black to debian 9 images

2019-02-18 Thread quiteadream
Hello,

I am new to using a beagle board and I just updated it to the debian 9 
images. Before I updated it, I was successfully logging in to root without 
a password through Putty. *I never created a password for root.* After I 
updated and flashed it to the board, i was asked for a password for root 
whenever I logged in and I do not know what password to put in. I have 
tried 'temppwd' and that did not work. I tried logging in to debian and 
that has worked successfully.

*it looked like this in Putty after the update:*

*login: root*
*root@192.168.7.2's password:*
*Password denied*

Can I just use debian or am I supposed to login to root every time? I have 
a project involving this beagle board and I was wondering if logging in as 
debian is fine.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/5f9e3324-5440-4b06-a6e6-4bb8bebcb441%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.