Go to advanced search

by markkuk
Wed Jul 17, 2019 9:36 am
Forum: Beginners
Topic: Debian-Adding keyboard
Replies: 2
Views: 60

Re: Debian-Adding keyboard

Keyboards and mouses should work without any special software. What's the type of your keyboard/mouse combo and what's the problem that you are trying to solve? Are you sure the software you wish to install is compatible with Linux running on an ARM processor?
by markkuk
Tue Jul 16, 2019 9:10 am
Forum: Automation, sensing and robotics
Topic: Programming an adafruit trinket from Rasperrypi
Replies: 2
Views: 62

Re: Programming an adafruit trinket from Rasperrypi

Trinket is programmed through the USB interface and it's perfectly safe to do that from a Pi without any extra adapters. Connecting the 5V Trinket GPIO pins to Pi GPIO pins isn't safe, but that's not related to programming.
by markkuk
Fri Jul 05, 2019 12:19 pm
Forum: Beginners
Topic: Opening a .Desktop file on Boot
Replies: 4
Views: 158

Re: Opening a .Desktop file on Boot

A .desktop file is not an executable file, it's a specification for a menu entry. See: https://specifications.freedesktop.org/desktop-entry-spec/latest/ Open the .desktop file in any text editor and look for a line starting with "Exec=" , that's the definition of the actual command started by the me...
by markkuk
Tue Jun 11, 2019 9:29 pm
Forum: C/C++
Topic: Porting C++ code to the Raspberry Pi
Replies: 5
Views: 438

Re: Porting C++ code to the Raspberry Pi

The code you are trying to compile is written for Microsoft Windows and the Microsoft Visual C++ compiler. All the errors are from types and funtions that are specific to the Microsoft environment and not parts of the standard C++ language. You need to remove all Windows-specific code and write equi...
by markkuk
Mon Jun 03, 2019 9:55 am
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 632

Re: Python3 network module seems not to have WLAN attribute

You are tring to run MicroPython code on a RPi. The network module of MicroPython is not a part of the standard Python language and it's not available (or necessary) on Raspbian Linux. Setting up a WLAN connection is handled entirely by the operating system: https://www.raspberrypi.org/documentation...
by markkuk
Thu May 30, 2019 8:09 pm
Forum: Beginners
Topic: Retrieving MySQL data from Windows Excel
Replies: 20
Views: 1104

Re: Retrieving MySQL data from Windows Excel

DougieLawson wrote:
Thu May 30, 2019 8:07 pm
Doesn't that .Net connector have to run on the machine with the database (and there isn't an ARM version).
No, the "connector" is the client-side library that communicates with the server over network.
by markkuk
Wed May 15, 2019 11:13 am
Forum: Beginners
Topic: Adjusting system time on daily basis
Replies: 3
Views: 180

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

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

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

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

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

I tried the following and as you can see it didn't work. [email protected]raspberrypi:~/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: 561

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

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

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

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

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

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: 21
Views: 1006

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

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

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

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

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

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

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 ...

Go to advanced search