Go to advanced search

by markkuk
Thu Jan 23, 2020 7:50 am
Forum: Beginners
Topic: SPI simple question
Replies: 2
Views: 65

Re: SPI simple question

How I can use bcm2835 SPI Timer with python like in arduino? You can't. The timers on the SOC are under control of the operating system, and you use the defined APIs instead of accessing the hardware registers directly. If you really want to program on the "bare metal" level, Python isn't the right...
by markkuk
Wed Jan 22, 2020 5:47 am
Forum: Networking and servers
Topic: Two questions about using RPi 4 as an access point
Replies: 4
Views: 211

Re: Two questions about using RPi 4 as an access point

Your server code listens to address 127.0.0.1 which is the local loopback address. The server won't receive anything from external devices using that address. Try "0.0.0.0" instead.
by markkuk
Tue Jan 21, 2020 11:07 am
Forum: General discussion
Topic: Testing analog camera shutter speeds
Replies: 2
Views: 123

Re: Testing analog camera shutter speeds

Now I need to display the intensity of the light and display that value - I’ve been instructed to use a light to frequency counter but I don’t know how to input that information into the Raspberry Pi and display that information in EV (Exposure Value) instead of Lux. Lux to EV conversion formula ca...
by markkuk
Mon Jan 20, 2020 11:19 am
Forum: Networking and servers
Topic: Two questions about using RPi 4 as an access point
Replies: 4
Views: 211

Re: Two questions about using RPi 4 as an access point

1. The next step is choosing which protocol you want to use to communicate between the RPi and the sensor boards. MQTT is one popular option, but HTTP is also possible.

2. What kind of Arduino boards are you using? Have you been able to connect to other APs than the RPi-based one with them?
by markkuk
Sat Jan 18, 2020 9:25 am
Forum: Beginners
Topic: connecting to my Pi via WiFi directly, like a Hot Spot
Replies: 1
Views: 82

Re: Project Help

frankoprussian wrote:
Fri Jan 17, 2020 10:30 pm
Hello all,
Im looking to connecting to my Pi via WiFi directly, like a Hot Spot to control some LEDs via a webpage
See here: https://www.raspberrypi.org/documentati ... s-point.md
by markkuk
Sat Jan 18, 2020 9:22 am
Forum: Beginners
Topic: pymssql install command line ?
Replies: 3
Views: 3072

Re: pymssql install command line ?

Vink wrote:
Fri Jan 17, 2020 6:48 pm
Was this ever resolved?
Yes, the answer given by RaTTuS is correct. Notice that you need to install python3-pymssql for Python 3.
by markkuk
Wed Jan 15, 2020 11:15 am
Forum: Beginners
Topic: node.js vs flask vs both?
Replies: 2
Views: 80

Re: node.js vs flask vs both?

Flask can handle updating your web page,either through AJAX or by WebSockets. You will need some JS code on the client side in either case.
by markkuk
Fri Jan 03, 2020 12:38 pm
Forum: General discussion
Topic: Linux 32-bit apps on ARM
Replies: 12
Views: 703

Re: Linux 32-bit apps on ARM

According to the web site, "The GUI is a java program that can run on any PC windows/linux/mac computer". So it should work on a RPi with OpenJDK Java runtime installed.
by markkuk
Fri Dec 20, 2019 8:40 am
Forum: General discussion
Topic: File Manager program execution
Replies: 12
Views: 360

Re: File Manager program execution

Is it being run with the same version of Python? As far as I know there is only one version of Python on the system. By default Raspbian has both Python2 and Python3. If your program uses any add-on Python modules they must be installed for the correct Python version. Is it run with the same option...
by markkuk
Thu Dec 05, 2019 10:21 pm
Forum: Beginners
Topic: Adding RTC & NTP server to RPI 4 running PiHole & Unbound
Replies: 5
Views: 299

Re: Adding RTC & NTP server to RPI 4 running PiHole & Unbound

After enabling the RTC, the kernel will keep it updated without me needing to schedule anything. How does it know where to get the reference time from? NTPd adjusts the kernel time using the special adjtime and ntp_adjtime system calls. See "man ntp_adjtime" and https://www.eecis.udel.edu/~ntp/ntpf...
by markkuk
Thu Dec 05, 2019 7:27 pm
Forum: Beginners
Topic: Adding RTC & NTP server to RPI 4 running PiHole & Unbound
Replies: 5
Views: 299

Re: Adding RTC & NTP server to RPI 4 running PiHole & Unbound

1) What software is responsible to update the RTC chip with time from a remote NPD server (x.north-america.pool.ntp.org)? 3) How do I ensure the RTC chip gets updated when needed? My 2 systems run 24/7 with reboots only when I am updating stuff. The Linux kernel updates the RTC every 11 minutes whe...
by markkuk
Sun Dec 01, 2019 9:31 am
Forum: C/C++
Topic: UART Problem
Replies: 17
Views: 738

Re: UART Problem

Don't try to change the properties of the device, add your user to the "dialout" group instead. For example:

Code: Select all

sudo adduser pi dialout
by markkuk
Tue Nov 26, 2019 7:11 am
Forum: Beginners
Topic: Question on headless mode
Replies: 21
Views: 920

Re: Question on headless mode

dcaccount wrote:
Tue Nov 26, 2019 5:34 am
- is it possible to run a GUI using Rpi only in headless mode?
Yes, you can use a remote desktop GUI on a headless Pi. It's up to you to decide if that is useful.
by markkuk
Thu Nov 21, 2019 1:04 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 15687

Re: The Tatami-Free Rooms coding challenge.

If some kind soul has a Pi 4 I'd love to know how my latest effort, above, stacks up against the current performance leader. I likely won;t see a Pi 4 here until Christmas. Pi 4 4GB, Raspbian Buster (with GUI desktop), rustc 1.39.0: mk@rpi4:~/projects/tatami $ /usr/bin/time target/release/tatami T(...
by markkuk
Tue Nov 19, 2019 3:35 pm
Forum: Raspbian
Topic: How can I install a downloaded appimage?
Replies: 1
Views: 209

Re: How can I install a downloaded appimage?

https://docs.appimage.org/introduction/ ... n-appimage
AppImages are CPU architecture specific, an AppImage for Intel architecture processors won't run on a RPi.
by markkuk
Mon Nov 18, 2019 8:28 am
Forum: Beginners
Topic: Communication between RaspberryPi 2 and ESP32
Replies: 1
Views: 113

Re: Communication between RaspberryPi 2 and ESP32

alexdupond wrote:
Sun Nov 17, 2019 8:22 pm
Would it be possible to setup the RaspberryPi as an access point and setup a Mqtt broker on the raspberry and then connect to that access point from the ESP32 modules?
Yes, see: https://www.raspberrypi.org/documentati ... s-point.md
by markkuk
Sun Nov 10, 2019 11:18 am
Forum: Python
Topic: config file
Replies: 12
Views: 1012

Re: config file

Code: Select all

#! /usr/bin/python3
from configparser import ConfigParser

# change the directory and filename to reflect the actual location of configuration file
conf_file = './myconfig.conf'

parser = ConfigParser()
parser.read_file(open(conf_file))
print(parser.get('data', 'stop'))
by markkuk
Sun Nov 10, 2019 10:48 am
Forum: Beginners
Topic: Can pi be programmed from windows?
Replies: 4
Views: 242

Re: Can pi be programmed from windows?

Yet another alternative is to use the remote development feature of Visual Studo Code.
by markkuk
Thu Nov 07, 2019 6:26 am
Forum: Python
Topic: config file
Replies: 12
Views: 1012

Re: config file

You aren't actually reading any config file in your code, you define a ConfigParser object and then you try to read something from the empty object. You must call read_file() before accessing the configuration values.
by markkuk
Mon Nov 04, 2019 9:29 am
Forum: Beginners
Topic: Is the current Pi 4 useable as 64bit?
Replies: 21
Views: 2034

Re: Is the current Pi 4 useable as 64bit?

"emerge" is the package maintenance command in Gentoo Linux. Gentoo users typically use it as a verb, so "emerge something" is a shorthand for "install package called something by using the emerge command".
by markkuk
Wed Oct 30, 2019 7:38 am
Forum: General discussion
Topic: Want to run hebi-robotics API on raspberry PI
Replies: 5
Views: 382

Re: Want to run hebi-robotics API on raspberry PI

Modules installed for Python2 don't work in Python3 and vice versa. Did you install the package for both Python versions? Which version of Python are you using to run your code?
by markkuk
Wed Oct 23, 2019 5:23 am
Forum: Automation, sensing and robotics
Topic: send serial monitor data from ESP32 board to Raspberry PI 3 B+ via Bluetooth?
Replies: 9
Views: 3064

Re: send serial monitor data from ESP32 board to Raspberry PI 3 B+ via Bluetooth?

Both classic and BLE (v4.2) with a Bluedroid-based software stack: http://espressif.com/sites/default/files/documentation/esp32_bluetooth_architecture_en.pdf https://docs.espressif.com/projects/esp-idf/en/stable/api-reference/bluetooth/index.html If the ESP32 is programmed using the Arduino IDE/runt...
by markkuk
Thu Oct 17, 2019 11:10 am
Forum: Python
Topic: Help connecting 2 Pies using socket
Replies: 3
Views: 589

Re: Help connecting 2 Pies using socket

Your server is listening on port 1237 but your client attempts to connect to port 1235. Additionally, are you sure that 'pi2' resolves to the IPv4 address of the server?
by markkuk
Mon Oct 14, 2019 4:11 pm
Forum: Raspbian
Topic: MongoDB on Stretch - E- Unable to locate package mongodb-org
Replies: 11
Views: 1061

Re: MongoDB on Stretch - E- Unable to locate package mongodb-org

You need to keep the braces around the arch= option (see man 5 sources.list):

Code: Select all

echo "deb [ arch=arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

Go to advanced search