Go to advanced search

by cheez
Fri Sep 09, 2016 6:32 am
Forum: Beginners
Topic: bash not taking <CR><LF>
Replies: 11
Views: 2014

Re: bash not taking <CR><LF>

Another way to fix your CR+LF / LF problem, without needing to install anything additional, Raspbian comes with Leafpad. Open your script in Leafpad, do Save-as, at the bottom of the Save-as window you can select LF, CR+LF, or CR. In your case, select LF. Save file; done. This feature can also be us...
by cheez
Wed Aug 10, 2016 6:32 pm
Forum: Beginners
Topic: An unexpected solution to powering a Pi 3
Replies: 3
Views: 754

Re: An unexpected solution to powering a Pi 3

Check the actual voltage at the end of the wire where you would plug in the Pi. Depending on the length and gage of the wire, you could be getting low voltage. Most power supplies are labeled 5V. But if you then introduce a long, low quality cable, the voltage could be low enough to cause the rainbo...
by cheez
Tue Aug 09, 2016 7:28 pm
Forum: Beginners
Topic: Servo speed
Replies: 6
Views: 2333

Re: Servo speed

1.I need few servos to start at different times and my code uses a for loop and sleep inside it, which makes the servo start one by one. what can I do to make them all start togther? is there any time.sleep() that makes the loop only sleep? not the whole code? Look up multithreading. 2. my servo se...
by cheez
Thu Mar 24, 2016 8:20 pm
Forum: Beginners
Topic: bash script help
Replies: 4
Views: 650

Re: bash script help

Ha ha, I guess I'm showing my age.
In bash "source test2.sh" certainly works. I am old school still stuck in the ksh world which doesn't have "source".
by cheez
Thu Mar 24, 2016 8:09 pm
Forum: Beginners
Topic: hostname and password
Replies: 1
Views: 405

Re: hostname and password

You say you connected using the ip address, so when you say "host name", I think you are referring to what should be the user name. The default user name is "pi".
by cheez
Thu Mar 24, 2016 7:49 pm
Forum: Beginners
Topic: bash script help
Replies: 4
Views: 650

Re: bash script help

You have to pass that variable on to the other script as an argument. test: greetings="hello world" bash ~/test2.sh "$greetings" test2: echo $1 You can pass on multiple variables. $2, $3, etc. If you don't include the quotes around the variable in the first script, the $1 will grab only the first wo...
by cheez
Thu Mar 24, 2016 7:20 pm
Forum: Troubleshooting
Topic: Problems with time / date
Replies: 3
Views: 1714

Re: Problems with time / date

The "computers" on your network have Real-Time-Clocks built in and can keep track of time on their own. The Pi, without a RTC module, must get its time from the "network"; in your case that would most likely be that DSL modem. In the modem's settings you should be able to find a setting for how the ...
by cheez
Thu Mar 24, 2016 2:57 pm
Forum: Raspbian
Topic: no space left on (SD) device. iso 7892631552, sd 7746879488
Replies: 3
Views: 786

Re: no space left on (SD) device. iso 7892631552, sd 7746879

I ran into this problem when I first got into this whole Pi thing. When you create a new install, instead of having Raspbian expand the partition all the way to the end of the sd, see if you can manually set the size of the partition. Make the partition about 300M or so smaller then the sd. The smal...
by cheez
Thu Mar 24, 2016 2:12 am
Forum: Troubleshooting
Topic: RPi 3 HDMI Out to VGA Monitor
Replies: 4
Views: 6577

Re: RPi 3 HDMI Out to VGA Monitor

..
by cheez
Wed Mar 23, 2016 7:09 pm
Forum: Python
Topic: GPIO button press not working
Replies: 4
Views: 1327

Re: GPIO button press not working

It is testing for the button press AFTER the timeout, not during. And even if you were pressing the button right at the 8 minute mark, it would take the picture, but it would not reset the timer because the "while" loop is already past. You need to indent your "if" statement to be inside the "while"...
by cheez
Wed Mar 23, 2016 6:48 pm
Forum: Raspbian
Topic: How to disconnect WiFi network?
Replies: 11
Views: 17699

Re: How to disconnect WiFi network?

Enter an invalid passphrase.
I received my Pi3 yesterday and had the same surprise, "How do I disconnect?"
I clicked on the ssid that I was connected to, it re-asked for the passphrase, I entered "disconnect" (any bad passphrase will do), and it disconnected from the network.
by cheez
Wed Mar 23, 2016 6:19 pm
Forum: Troubleshooting
Topic: [RPi3] SSH not working via wifi
Replies: 155
Views: 102666

Re: [RPi3] SSH not working via wifi

..

Go to advanced search