Go to advanced search

by markkuk
Tue Apr 23, 2019 10:36 am
Forum: General discussion
Topic: Running an Arduino from the raspberry pi.....
Replies: 7
Views: 206

Re: Running an Arduino from the raspberry pi.....

Did you download download the file before trying to unpack it? Is it located in your current directory? What error message did you get when you tried the "tar" command?
by markkuk
Sat Apr 20, 2019 9:53 am
Forum: General discussion
Topic: Weather station MySQLdb problem
Replies: 2
Views: 68

Re: Weather station MySQLdb problem

Start by reading the MySQLdb documentation and tutorials.
You need to create a database connection using the connect() function.
by markkuk
Fri Apr 12, 2019 11:17 am
Forum: Beginners
Topic: How to run an executable file from CRON?
Replies: 5
Views: 105

Re: How to run an executable file from CRON?

The correct cron line would be:

Code: Select all

0 1 * * * /dir1/dir2/dir3/executable-file-name
Each user has their own crontab file that can be edited by the command "crontab -e", so you don't need to specify the username.
by markkuk
Sat Mar 30, 2019 11:10 am
Forum: Beginners
Topic: Need a guide to RSP 3 B+ Ethernet setup: PC>RSP>Router
Replies: 6
Views: 185

Re: Guide to RSP 3 B+ Ethernet setup: PC>RSP>Router

blueberry.pie wrote:
Sat Mar 30, 2019 12:17 am
I will be using this setup to get to the internet instead of the WiFi.
Why aren't you connecting both the RPi and the PC directly to the router? That would be the normal way to connect multiple devices in a wired network.
by markkuk
Fri Mar 01, 2019 11:23 am
Forum: Automation, sensing and robotics
Topic: Where does MQTT exactly fits between sensor and broker(Mosquitto).?
Replies: 4
Views: 201

Re: Where does MQTT exactly fits between sensor and broker(Mosquitto).?

awaisumar wrote:
Wed Feb 27, 2019 11:09 pm
so question is does the mqtt is between Sensor and DB or from PI to DB.
That's entirely up to you if you are designing the whole system. There's more than one way to do it.
by markkuk
Mon Feb 18, 2019 11:06 am
Forum: Beginners
Topic: Stepper motor
Replies: 13
Views: 638

Re: Stepper motor

What I basically wondering is how do I write the code for 3 stepper motors with 3 DRV8825 and 3 DQ860MA? That setup doesn't make sense. How are you planning to combine three motors with six controllers? You start by picking one type of controller as the base of your setup. Once you have a hardware ...
by markkuk
Sat Feb 09, 2019 10:22 am
Forum: Beginners
Topic: Basic connections to GPIO pins
Replies: 20
Views: 637

Re: Basic connections to GPIO pins

Does anyone know if there’s a HAT that will work as a buffer-box so that items such as relays, motors and input devices can be directly connected? Adafruit CRICKIT HAT: https://learn.adafruit.com/adafruit-crickit-hat-for-raspberry-pi-linux-computers Pimoroni Automation HAT: https://shop.pimoroni.co...
by markkuk
Tue Feb 05, 2019 9:57 pm
Forum: Beginners
Topic: understanding bluetooth
Replies: 6
Views: 190

Re: understanding bluetooth

The official Bluetooth specs are at : https://www.bluetooth.com/specifications
by markkuk
Sun Feb 03, 2019 11:40 am
Forum: Beginners
Topic: cron job has print statements, can I view these?
Replies: 6
Views: 194

Re: cron job has print statements, can I view these?

Use the append operator ">>":

Code: Select all

* * * * * path/to/script >>path/to/logfile
http://linuxcommand.org/lc3_lts0070.php
by markkuk
Fri Feb 01, 2019 12:40 pm
Forum: C/C++
Topic: LibCurl incomplete
Replies: 3
Views: 599

Re: LibCurl incomplete

The curl MIME API was added to curl version 7.56.0 and Raspbian Stretch has curl 7.52.1.
by markkuk
Tue Jan 29, 2019 4:17 pm
Forum: General discussion
Topic: Shutting down raspberry pi automatically using UPS
Replies: 4
Views: 175

Re: Shutting down raspberry pi automatically using UPS

Install the UPS monitoring software included in Raspbian:

Code: Select all

sudo apt update
sudo apt install nut
Read the documentation: https://networkupstools.org/documentation.html
by markkuk
Fri Jan 25, 2019 11:02 pm
Forum: General discussion
Topic: Just some questions :D
Replies: 2
Views: 153

Re: Just some questions :D

1. Yes. 2. An operating system, a compiler or interpreter for your chosen programming language, an Integrated Development Environment (IDE) or separate programs for each development function, some libraries/frameworks for standard functions, a version management system, etc. There are several altern...
by markkuk
Sat Jan 19, 2019 10:56 pm
Forum: General discussion
Topic: computer power supply
Replies: 26
Views: 1104

Re: computer power supply

Hmm. Several people seem to disagree with me so I guess either I've misread the labels or I'm looking at the crappiest power supplies I've come across xD I guess you were looking at the spec for the 5V Standby line, which is always powered on even if the main outputs are off. 5VSB is typically 2-3 ...
by markkuk
Fri Jan 18, 2019 12:32 pm
Forum: Beginners
Topic: I have the following devices and cables and don't know what to do
Replies: 7
Views: 265

Re: I have the following devices and cables and don't know what to do

What is the optimal way to run my first boot. First boot of what? You didn't list any Raspberry Pi devices. Is it possible to carry out with an HDMI enabled TV? Yes, Raspberry Pi computers are designed to be used with TVs with HDMI connections. See: https://projects.raspberrypi.org/en/projects/rasp...
by markkuk
Wed Jan 16, 2019 10:27 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 56
Views: 1413

Re: Multiple partitions on SD card that came with RPi2?

Not one of the tutorials I have seen even mentions this let alone explains where I am supposed to mount Raspbian. Do I format the F and G partitions the way my PC tells me I need to? On which one do I mount Raspbian? You can't mount Raspbian partitions on a PC running Windows. What you can do is wr...
by markkuk
Fri Jan 11, 2019 9:44 am
Forum: Beginners
Topic: Make my pi secure
Replies: 4
Views: 283

Re: Make my pi secure

Start by reading the "Securing your Raspberry Pi" guide: https://www.raspberrypi.org/documentati ... ecurity.md
by markkuk
Mon Dec 31, 2018 11:28 am
Forum: General discussion
Topic: Question about selling my code on a RP
Replies: 7
Views: 376

Re: Question about selling my code on a RP

All those imports are code written--and licensed--by someone else. That mans your probably don't have any right to *sell* those modules to anyone else If the modules are licensed under GPL or other Free Software licenses you are free to sell them (as long as you follow the license rules): https://w...
by markkuk
Fri Dec 28, 2018 9:45 am
Forum: Beginners
Topic: My raspberry pi 3 can t exit from the boot page
Replies: 3
Views: 159

Re: My raspberry pi 3 can t exit from the boot page

Have you gone through the checks on the Boot Problems Sticky theread on the Troubleshooting forum? What exactly do you mean by "the boot screen"? Which OS are you using?
by markkuk
Thu Dec 27, 2018 11:58 am
Forum: Advanced users
Topic: config.txt file kernel reading procedure
Replies: 9
Views: 950

Re: config.txt file kernel reading procedure

The Linux kernel doesn't read config.txt. The bootloader running on the Videocore GPU reads the config.txt file and builds the kernel command line based on config.txt and cmdline.txt.
by markkuk
Sun Dec 23, 2018 10:11 am
Forum: Python
Topic: NameError: name 'ws' is not defined *Please HELP*
Replies: 3
Views: 545

Re: NameError: name 'ws' is not defined *Please HELP*

Check that the package was installed correctly with:

Code: Select all

pip3 show Adafruit-WS2801
Note the use of dash instead of underscore.

Python language is case sensitive. You must type the command exactly as in the example with correct capitalization:

Code: Select all

import Adafruit_WS2801
import Adafruit_GPIO.SPI as SPI
by markkuk
Sat Dec 22, 2018 9:49 pm
Forum: Python
Topic: NameError: name 'ws' is not defined *Please HELP*
Replies: 3
Views: 545

Re: NameError: name 'ws' is not defined *Please HELP*

WS2801 LEDs aren't NeoPixels, both your physical connection and the software are wrong. See this tutorial for connecting WS2801 strips: https://tutorials-raspberrypi.com/how-t ... led-strip/
by markkuk
Wed Dec 12, 2018 9:17 pm
Forum: General discussion
Topic: PIGPIO REMOTE FROM WINDOWS
Replies: 3
Views: 147

Re: PIGPIO REMOTE FROM WINDOWS

You will likely need to design your program running on your PC (Windows) as a "Client" and design a program on the Pi with network socket / server functionality in mind. No, the pigpio library and pigpiod service will take care of all that automatically. Just specify at library initialisation time ...
by markkuk
Tue Dec 04, 2018 12:07 pm
Forum: Automation, sensing and robotics
Topic: Reading sensor
Replies: 1
Views: 537

Re: Reading sensor

Install the Adafruit DHT library. AM2302 is not a Dallas 1-wire sensor, it's a DHT22 in a different package.
by markkuk
Tue Nov 27, 2018 9:25 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Muliple I2C Slaves: Resistors Needed?
Replies: 4
Views: 1290

Re: Muliple I2C Slaves: Resistors Needed?

No, no, no, no, no and none.
by markkuk
Wed Nov 21, 2018 10:45 am
Forum: General discussion
Topic: New to this - connecting Pi to home stereo
Replies: 2
Views: 414

Re: New to this - connecting Pi to home stereo

AV receivers like your NAD typically convert any analog input signals to digital for internal processing, so it would be best to use a digital connection to the AVR. Either use the builtin HDMI output on the Pi or get the Hifiberry Digi+ instead of Dac+. If ease of use is most important, then I woul...

Go to advanced search