Go to advanced search

by markkuk
Wed Dec 12, 2018 9:17 pm
Forum: General discussion
Topic: PIGPIO REMOTE FROM WINDOWS
Replies: 3
Views: 368

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

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

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

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...
by markkuk
Wed Nov 14, 2018 10:56 am
Forum: General discussion
Topic: how to set date and time to Raspberrypi Module
Replies: 5
Views: 260

Re: how to set date and time to Raspberrypi Module

Which "example programs" are you using and what is the error you are getting? Please post the actual command line you entered and all responses that were displayed.
by markkuk
Mon Nov 05, 2018 8:35 pm
Forum: Python
Topic: [solved] Python SQL variable question
Replies: 2
Views: 264

Re: Python SQL variable question

The documentation for MySQLCursor.execute() has the following note:
In Python, a tuple containing a single value must include a comma. For example, ('abc') is evaluated as a scalar while ('abc',) is evaluated as a tuple.
Try defining the single parameter value as:

Code: Select all

(dayID,)
by markkuk
Sat Nov 03, 2018 9:31 pm
Forum: Networking and servers
Topic: Let NTPd defer to PCF8523 RTC when no active network
Replies: 5
Views: 437

Re: Let NTPd defer to PCF8523 RTC when no active network

The reason for asking is that the PCF8523 drifts a bit consistently and I'd prefer to nudge it back on track during the moments there is network access but would like it to happen automatically rather than manually. The Linux kernel does that automatically, you don't need to do anything other than ...
by markkuk
Thu Nov 01, 2018 8:50 pm
Forum: Beginners
Topic: flow control & branching,
Replies: 4
Views: 259

Re: flow control & branching,

You should read chapter 4 of the Python tutorial. There's no "goto" in Python.
by markkuk
Sun Oct 28, 2018 9:49 am
Forum: General discussion
Topic: How do you build entire Raspberian from sources
Replies: 10
Views: 1112

Re: How do you build entire Raspberian from sources

There was a paper written that discussed just how far down this problem extends. It is--at least in theory--possible to create a modified compiler that injects "holes" into anything compiled, including the compiler itself, and then restore the compiler source code so that the "injection" code isn't...
by markkuk
Sat Oct 27, 2018 12:13 pm
Forum: Advanced users
Topic: Using available kernel driver instead of user-space driver?
Replies: 5
Views: 1195

Re: Using available kernel driver instead of user-space driver?

Thanks for your quick reply! I will try it out later. Where would I have to search if I want to find documentation about the driver's interface, i.e. how to get the data out of the device and how to configure it? It's an Industrial IO (IIO) device: https://wiki.analog.com/software/linux/docs/iio/ii...
by markkuk
Tue Oct 16, 2018 4:12 pm
Forum: Beginners
Topic: Raspberry pi 3 b+ / Java
Replies: 1
Views: 280

Re: Raspberry pi 3 b+ / Java

Swing is part of the Java standard library (Java Foundation Classes), so it doesn't need any separate installation. If you have installed a JDK you can compile and run Swing programs.
by markkuk
Wed Oct 10, 2018 6:57 am
Forum: General discussion
Topic: Use pigs to control led strip
Replies: 4
Views: 440

Re: Use pigs to control led strip

The led strip shut down, I can't power up the three color in same time, I can power up 2 color at the same time, when I power up the third color, every led shut down. The first thing you should check is the LED power supply. It could be overloading and shutting down when you try to use all three co...
by markkuk
Sun Oct 07, 2018 9:42 am
Forum: Beginners
Topic: OS names / current / latest vesrion ?
Replies: 7
Views: 606

Re: OS names / current / latest vesrion ?

AnneCreek wrote:
Sun Oct 07, 2018 12:34 am
Are there any current issues / resolved issues published - like in Github?
The Raspberry Pi Foundation has a GitHub page: https://github.com/raspberrypi/
The Raspbian Linux distribution uses Launchpad for issue tracking: https://bugs.launchpad.net/raspbian
by markkuk
Wed Oct 03, 2018 10:18 am
Forum: Automation, sensing and robotics
Topic: LC Technologies BME280
Replies: 2
Views: 526

Re: LC Technologies BME280

You need four wires: 3.3V, ground, SDA and SCL. The breakout connections appear clearly labeled, see pinout.xyz for Raspberry Pi connections. The picture shows that you are missing the SDA wire to RPi pin 3.
by markkuk
Mon Oct 01, 2018 1:02 pm
Forum: Automation, sensing and robotics
Topic: Motor torque and gearing
Replies: 6
Views: 762

Re: Motor torque and gearing

I am working on a project which involves the Pi controlling a motor. The motor needs to lift a 750g weight to a height of a 60cm. How quickly? That's 4.4 Joules of work, the amount of time spent for the lift determines the power required. In the event there is somebody on this forum who can offer a...
by markkuk
Tue Sep 25, 2018 7:19 pm
Forum: Beginners
Topic: Mysql table creation to store sensor data
Replies: 13
Views: 1542

Re: Mysql table creation to store sensor data

There is no option like CURRENT_TIMESTAMP. Did you follow the links in my previous post? CURRENT_TIMESTAMP definitely exists in MySQL. Maybe the problem is with whatever GUI tool you are using. It bydefault set to varchar(45) varchar(45) is a data type (which you should replace with TIMESTAMP), CUR...
by markkuk
Tue Sep 25, 2018 6:55 am
Forum: Beginners
Topic: Mysql table creation to store sensor data
Replies: 13
Views: 1542

Re: Mysql table creation to store sensor data

The type of your TIMEDATE column should be TIMESTAMP and its default value should be CURRENT_TIMESTAMP. Assuming you are intending to use this as the primary key, it should have the NOT NULL and UNIQUE attributes as well.
by markkuk
Fri Sep 21, 2018 8:24 am
Forum: Beginners
Topic: LED project help, please?
Replies: 7
Views: 842

Re: LED project help, please?

Kekewy wrote:
Fri Sep 21, 2018 1:22 am
Thanks for the suggestions. I'm not familiar with the Arduino. Can you make your own pattern into it or does it only use pre-set ones?
Arduino devices are fully programmable microcontrollers. Check out the Adafruit Gemma and Gemma M0 that are specifically designed for wearable projects.
by markkuk
Tue Sep 18, 2018 11:48 am
Forum: Beginners
Topic: How do I compile SharingService.exe (x64) for ARM processors on the Raspberry Pi
Replies: 3
Views: 355

Re: How do I compile SharingService.exe (x64) for ARM processors on the Raspberry Pi

If you manage to compile the code for Windows on ARM it still won't run on a Raspberry Pi. Windows for IoT can't run Win32 applications, and Raspbian or other Linux distributions won't run any Windows software.
by markkuk
Sun Sep 16, 2018 12:22 pm
Forum: Python
Topic: int Object has no attribute GPIO
Replies: 19
Views: 1892

Re: int Object has no attribute GPIO

kentang1102 wrote:
Sun Sep 16, 2018 10:06 am
Thanks all~~

Error codes came out from the IDLE, but it works fine finally on Raspberry pi Python3. Don't know why..
When you are running under IDLE the standard output isn't connected to a terminal. That's why you received the "inappropriate ioctl" error.
by markkuk
Sun Sep 16, 2018 8:44 am
Forum: Python
Topic: int Object has no attribute GPIO
Replies: 19
Views: 1892

Re: int Object has no attribute GPIO

How are you starting your code? Are you using IDLE, Thonny or some other IDE? Try running your code from a normal terminal window instead.
by markkuk
Fri Sep 14, 2018 12:19 pm
Forum: Beginners
Topic: Connectin to Windows 10 PC.
Replies: 26
Views: 3057

Re: Connectin to Windows 10 PC.

How do I access boot volume and create blank file named ssh in windows 10.? Step by step please. Power off the Raspberry Pi and remove the MicroSD card. Insert the card into your Windows 10 computer using whichever adapters and reader devices you need. Ignore any messages from Windows if it suggest...
by markkuk
Thu Sep 13, 2018 11:22 am
Forum: Beginners
Topic: Connectin to Windows 10 PC.
Replies: 26
Views: 3057

Re: Connectin to Windows 10 PC.

Not yet, but I am getting there. I have flashed Rasbian Lite to micro card using Etcher. Did you create the empty file named "ssh" according to the instructions: https://www.raspberrypi.org/documentation/remote-access/ssh/README.md I have a connection listed in Network Connections as follows. rasbe...
by markkuk
Mon Sep 03, 2018 8:58 am
Forum: General discussion
Topic: Bedroom Display Interface
Replies: 5
Views: 578

Re: Bedroom Display Interface

DAKboard has basically all the features you want. It's not free/open source, but maybe you can use it while designing your own superior solution :)
by markkuk
Mon Sep 03, 2018 8:49 am
Forum: General discussion
Topic: Connect two device on same 3.3 V pin
Replies: 3
Views: 402

Re: Connect two device on same 3.3 V pin

There's a second 3.3V output at pin 17, but the answer to your actual question is:
Yes, you can connect multiple devices to a single power or ground pin as long as you don't exceed the maximum current capacity. You don't need any additional hardware other than suitable wires.

Go to advanced search