Go to advanced search

by pygmalion
Sat Apr 21, 2018 5:04 pm
Forum: Automation, sensing and robotics
Topic: Using ENA or IN1/2 PWM for L289N motor speed control
Replies: 12
Views: 15414

Re: Using ENA or IN1/2 PWM for L289N motor speed control

I need 1kHz, which is an order of magnitude more than 150Hz you have in this article, and two orders of magnitude less than the limit you specified. I'll give it a shot. But I wonder... Isn't pigpio (that is doing counting) written in C? In that case what do you gain by using C? By the way, which ma...
by pygmalion
Sat Apr 21, 2018 4:26 pm
Forum: Automation, sensing and robotics
Topic: Using ENA or IN1/2 PWM for L289N motor speed control
Replies: 12
Views: 15414

Re: Using ENA or IN1/2 PWM for L289N motor speed control

I see your software uses callback function, which, I presume, counts edges on a GPIO input behind the scenes (while the python program does other stuff). Is that correct? What is the highest edge frequency that callback is able to detect reliably? I suppose that depends on RPi version too, I have RP...
by pygmalion
Tue Apr 03, 2018 10:05 pm
Forum: Automation, sensing and robotics
Topic: MCP4728 Quad DAC Help
Replies: 11
Views: 5054

Re: MCP4728 Quad DAC Help

If anyone is still interested, I wrote a simple Python library, which includes address changing (the toughest part, done by bit banging):

http://www.pinteric.com/raspberry.html#dac
by pygmalion
Tue Jun 07, 2016 6:33 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

@bensimmo Unfortunately it does not help. It seems that ntp does not start automatically, but only if you call it manually.
by pygmalion
Thu Jun 02, 2016 2:10 pm
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

@dgordon42

I have already done that. Since that patch, ntpd started working, but update is still not automatic.
by pygmalion
Thu Jun 02, 2016 12:56 pm
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

To stop this senseless flame, I shall say: OK, you are right, Linux is cool. But now I dare you all: When will automatic update of time start on my Raspberry Pi (using standard NTP package)? Two months have already passed. Since I am too stupid for Linux myself, I will do everything you ask me to do...
by pygmalion
Thu Jun 02, 2016 8:14 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

It's all part of the learning curve - no gain without pain and all that.
Of course it is so. But I (and probably vast majority of people) am just too stupid to solve even the starting, simplest Linux problems myself and solutions/instructions cannot be (easily) obtained on the Internet.
by pygmalion
Thu Jun 02, 2016 7:37 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

Heater, There is no "consortium" behind the Pi. It's a charitable foundation. A non-profit. A little bunch of guys in Cambridge. Doing the best they can. Which is pretty amazing actually. With a billion lines of software in the Raspbian operating system, and a huge variety of hardware out there, it'...
by pygmalion
Wed Jun 01, 2016 3:22 pm
Forum: Troubleshooting
Topic: Time does not sync on Pi 3 and with official dongle [Solved]
Replies: 57
Views: 33652

Re: [Solved] Time does not sync on Pi 3 and with official do

I want to confirm that SR-71 solution (partially) solved my problem too. I even opened another thread https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=149058 and lost several days in searching the solution until I bumped on this thread. Obviously, this is global error. It is a shame that Rasp...
by pygmalion
Wed Jun 01, 2016 3:19 pm
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

I found solution to ntpd problem on this thread: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141454 . Obviously, this is global error. Too bad I lost several days trying different stuff before finding it. It is a shame that Raspberry Pi consortium missed such a basic mistake. I still don...
by pygmalion
Mon May 23, 2016 8:58 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

I have 2 PI's in the same network: 1. RPI-1B Raspbian GNU/Linux 7 (wheezy) connected via Ethernet 2. RPI-3 Raspbian GNU/Linux 8 (jessie) connected via WiFi The first one keeps time w/o problem. The second is out of the sync (few minutes). NTPD configuration seems to be ok: /etc/init.d/ntp status ● ...
by pygmalion
Mon May 23, 2016 8:45 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

what I found is that momentarily I can update time using ntpdate even if I don't turn ntpd off. No, you can't. This is a machine, it's not magic. You don't order it around and bend it to your will. You learn how to make it do what you want. If you were able to run ntpdate without message it means p...
by pygmalion
Mon May 23, 2016 8:26 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

You need to read man pages, you know. I must disappoint you, but my experiences with Unix/Linux is that I used the former for a while in the previous century, and now Linux since I got RPi3. I actually know the man command, as well as ls, cp, chmod..., but that's all. I just want to do some Python ...
by pygmalion
Mon May 23, 2016 8:15 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

It seems that the time update is not problem per se , but automatization / interaction with internet services is. As far as ntpdate is concerned, what happens with the "socket in use" message is that ntpd (I guess) is listening on 123/udp. The socket is in use. Stop ntpd, run ntpdate, start ntpd. Y...
by pygmalion
Mon May 23, 2016 8:01 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

Of course I did raspi-config setting time zone, checked firewall and followed dozens of other advices from Linux/Raspberry experts, to no avail. Maybe my Rasberry Pi 3 has hardware error or is somehow un-standard, in which case the hardware module is the only solution. However, as you can read above...
by pygmalion
Mon May 23, 2016 7:18 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

After losing 50 hours of my time on this petty problem and talking to a dozen of Linux/Raspberry experts, the time has run out on me. My firm belief is that the only way to solve this problem is that Raspbian developers actually buy one Raspberry Pi 3 and test it themselves. If anyone knows one, ple...
by pygmalion
Mon May 23, 2016 6:44 am
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

I actually tried both of those suggestions, unsuccessfully. As far as timesyncd is concerned here is my post about that: http://unix.stackexchange.com/questions/284354/problems-with-timesyncd-or-networkd As far as ntpdate is concerned my experiences are as follows: Just after fresh installation of n...
by pygmalion
Sun May 22, 2016 6:05 pm
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

Re: RPi3 jessie - NPTD does not work

Thank you for your responses. What I did in meantime (on suggestion from someone else) is to install ntpdate and after issuing command ntpdate 0.si.pool.ntp.org time was finally updated. So commands ntpdate and ntpd are commands from two different packages??! Contents of ntp.conf are driftfile /var/...
by pygmalion
Sun May 22, 2016 3:58 pm
Forum: General discussion
Topic: RPi3 jessie - NPTD does not work
Replies: 35
Views: 8218

RPi3 jessie - NPTD does not work

Hello, I have bought RPi3 about two months ago and installed original Rasbian Jessie three times since and time has never updated. Not even once. RPi3 is connected to Internet via WiFi and I never noticed any other problem with connection. There is no problem with Firewall because NPT update on the ...
by pygmalion
Mon May 02, 2016 7:04 pm
Forum: HATs and other add-ons
Topic: Overview of available LCD displays
Replies: 5
Views: 4687

Re: Overview of available LCD displays

Thank you for sharing your experiences. Here is a little update from me. I found out that there are a plenty of JLX LCD ST7565-based displays on the Aliexpress (at least a dozen). I chose JLX 12864G-300-PN variant, 128x64 big display with true square points, without Chinese characters and with 3.3V ...
by pygmalion
Tue Mar 29, 2016 8:28 pm
Forum: HATs and other add-ons
Topic: Overview of available LCD displays
Replies: 5
Views: 4687

Overview of available LCD displays

Dear Raspberrians! I am a new guy in the town and I am still looking around. What confuses me most is availability of devices for 3.3V logic . And nowhere is the situation so confusing as in the case of LCD displays . I suspect this has something to do with the fact that some years ago 5V logic was ...
by pygmalion
Sat Jul 18, 2015 8:19 pm
Forum: Python
Topic: Python driving ST7565 12864 LCD
Replies: 39
Views: 21802

Re: Python driving ST7565 12864 LCD

I do not understand the wiring. ST7565 follows SPI protocol, and specified GPIO numbers do not follow that logic. Does this mean that programs do not use SPI protocol or SPI protocol is programmed manually?

Go to advanced search