Go to advanced search

by markkuk
Wed May 15, 2019 11:13 am
Forum: Beginners
Topic: Adjusting system time on daily basis
Replies: 3
Views: 114

Re: Adjusting system time on daily basis

If you are using the real ntp service (not the poor substitute built in systemd), your RTC will be automatically synchronized with the system time at 11 minute intervals. No additional software or restarting the service is needed.
by markkuk
Sun May 12, 2019 9:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Microchip/mcu
Replies: 7
Views: 295

Re: Microchip/mcu

ATSAMD09 with seesaw: 7 GPIOs, up to 340 NeoPixels etc. See the docs: https://learn.adafruit.com/adafruit-see ... iring-test
by markkuk
Sat May 04, 2019 9:31 pm
Forum: Python
Topic: Install busio module
Replies: 6
Views: 636

Re: Install busio module

You need to use python3 instead of python2:

Code: Select all

#!/usr/bin/env python3
import busio
print("hello word")
by markkuk
Sat Apr 27, 2019 8:17 am
Forum: General discussion
Topic: Preempt RT for RPi help
Replies: 4
Views: 178

Re: Preempt RT for RPi help

Running this code after compilation, meaning running the executable file, in the Pi takes about a minute. I want to speed up the execution as much as I can with Preempt RT. You can't. The purpose of any real-time OS or real-time patch to Linux isn't to speed up execution, it's to make the response ...
by markkuk
Fri Apr 26, 2019 11:25 am
Forum: General discussion
Topic: Running an Arduino from the raspberry pi.....
Replies: 12
Views: 438

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

I tried the following and as you can see it didn't work. [email protected]:~/Downloads $ tar xvJf arduino-1.8.9-linuxarm.tar.xz tar (child): arduino-1.8.9-linuxarm.tar.xz: Cannot open: No such file or directory You missed the first step in the instructions posted by Andyroo: Download the 32bit ARM ver...
by markkuk
Tue Apr 23, 2019 10:36 am
Forum: General discussion
Topic: Running an Arduino from the raspberry pi.....
Replies: 12
Views: 438

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: 76

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: 133

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: 223

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: 219

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: 668

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: 706

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: 200

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: 204

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: 677

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: 199

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: 161

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: 1153

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: 272

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: 1467

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: 304

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: 386

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: 173

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: 969

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: 587

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

Go to advanced search