Go to advanced search

by Lonewolff
Mon Oct 22, 2018 8:49 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 34
Views: 12625

Re: VS17 Help

FWIW, Visual Studio is my preferred environment for building on the Raspberry Pi also. I am constantly wiping SD cards, reinstalling, testing various thing, etc... So for me, I just put a clean install of Raspbian back on, enable SSH, and I am done. Hit compile on VS and it just works. That and Wind...
by Lonewolff
Thu Apr 20, 2017 9:36 pm
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

Cool, thanks for the additional info and links Gavinmc42 :)
by Lonewolff
Thu Apr 20, 2017 10:53 am
Forum: Python
Topic: execute the loop for 1sec
Replies: 17
Views: 1352

Re: execute the loop for 1sec

Really? Handy tip :)

What would you call the activity the user partook in though?
by Lonewolff
Thu Apr 20, 2017 10:43 am
Forum: Beginners
Topic: RPi3 + Touch Screens
Replies: 2
Views: 366

Re: RPi3 + Touch Screens

I'm actually working on something along these lines right now and things are proceeding well.

I can keep you posted if you like :)
by Lonewolff
Thu Apr 20, 2017 10:34 am
Forum: Python
Topic: execute the loop for 1sec
Replies: 17
Views: 1352

Re: execute the loop for 1sec

joan wrote:
Martin Frezman wrote: ...
Color me confused...
Don't you mean colour me confused?
Why? Why troll like this?

Is this really nessesary?

FWIW - it's 'colour' where I live also. But I accept that not everyone lives where I live. ;)
by Lonewolff
Thu Apr 20, 2017 10:07 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

joan wrote:I look forward to seeing your code which updates a LCD display at 25MHz.
Easy peasy. That's my task for tomorrow. ;)

I have made many many thousands of dollars on doing that which "can't be done". Sad that I have to be trolled in the process though.
by Lonewolff
Thu Apr 20, 2017 9:55 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

Anyway. I have proven that my multi-meter is misreporting the speed by throwing in a stack of "NOP's".

Measuring 20 Mhz now, by slowing down the logic a heap. So, this is great. I should be able to drive this LCD quite quickly by direct access to the GPIO ports.
by Lonewolff
Thu Apr 20, 2017 9:53 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

You are the one claiming a toggle benchmark is a useful indicator of writing speed. As you have found that is not actually the case. How is it not a useful indicator? Knowing how fast a pin can toggle is a direct indicator of how fast it can transmit a 'bit' of information. If this is no longer the...
by Lonewolff
Thu Apr 20, 2017 9:41 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

Obviously...

You figure I am drawing images to this LCD using a looping square wave??
by Lonewolff
Thu Apr 20, 2017 9:31 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Re: Fastest GPIO switching speed?

Many MHz are achievable. However toggling a GPIO as fast as possible is the most useless benchmark ever devised. How many applications do you know where the single aim is to toggle a GPIO? Well, to drive data to an LCD with maximum efficiency for starters... Code your application with any of the C ...
by Lonewolff
Thu Apr 20, 2017 9:20 am
Forum: Beginners
Topic: Fastest GPIO switching speed?
Replies: 11
Views: 4048

Fastest GPIO switching speed?

Hi Guys, Pretty proud of myself today. I got a 2.8" Arduino display working on my Raspberry Pi 2 in Raspbian. (Sales guy said it would never work - LOL :lol:) It is running pretty slowly though (very slowly in-fact) as using the 'file system method' of switching the GPIO states runs at around 40Hz. ...
by Lonewolff
Thu Jan 12, 2017 9:37 pm
Forum: Bare metal, Assembly language
Topic: GPU font map
Replies: 1
Views: 620

GPU font map

Hi Guys,

Just wondering if the GPU has its own default font map built in or is it up to us to supply fonts? (I suspect the latter)

Thank in advance :)
by Lonewolff
Wed Jan 11, 2017 9:50 pm
Forum: C/C++
Topic: Playing sound through /SYS
Replies: 4
Views: 1021

Re: Playing sound through /SYS

http://www.tldp.org/HOWTO/Alsa-sound-6.html says you should look into /dev/snd/ instead , which makes sense , since sysfs is primarly for configuration instead of device access. ghans Close but no good unfortunately. Seems the document is a little outdated. When you try to 'cat' directly to /dev/sn...
by Lonewolff
Wed Jan 11, 2017 8:45 am
Forum: C/C++
Topic: Programming for Raspberry Pi in C/C++
Replies: 19
Views: 5116

Re: Programming for Raspberry Pi in C/C++

If you are a Windows user you'll love this - https://marketplace.visualstudio.com/items?itemName=VisualCPPTeam.VisualCforLinuxDevelopment Takes a minute or so to setup and you can compile and run projects on your Pi direct from any recent version of Visual Studio Express. I started using this a few ...
by Lonewolff
Wed Jan 11, 2017 8:37 am
Forum: C/C++
Topic: Playing sound through /SYS
Replies: 4
Views: 1021

Re: Playing sound through /SYS

Nice! Thanks ghans. Having a look at the link now.
by Lonewolff
Wed Jan 11, 2017 12:53 am
Forum: C/C++
Topic: Playing sound through /SYS
Replies: 4
Views: 1021

Playing sound through /SYS

Hi Guys, Just wondering if anyone has tried playing audio through the virtual file system (eg /sys/class/sound/card0)? I have managed to write my own library to control the GPIO pins easily enough and was hoping I could control audio playback in a similar fashion. The plan is to playback audio only ...
by Lonewolff
Sat Dec 24, 2016 8:20 am
Forum: HATs and other add-ons
Topic: Battery Powered PI
Replies: 7
Views: 1650

Re: Battery Powered PI

You could use any 'off the shelf' power bank (the same ones used to charge up iPhones etc on the fly).

That's what I currently use and they are as cheap as $10 these days.
by Lonewolff
Sat Dec 24, 2016 4:21 am
Forum: General discussion
Topic: IR remote
Replies: 3
Views: 650

Re: IR remote

Buy a learning remote.
by Lonewolff
Thu Feb 19, 2015 7:53 am
Forum: Beginners
Topic: How do you safely shutdown noobs?
Replies: 3
Views: 1019

Re: How do you safely shutdown noobs?

Raspbian.

The OS is well and truly installed.

Shuts down ok from the GUI but not from the terminal.
by Lonewolff
Thu Feb 19, 2015 7:05 am
Forum: Beginners
Topic: How do you safely shutdown noobs?
Replies: 3
Views: 1019

How do you safely shutdown noobs?

Hi Guys,

Probably a stupid question, but how do you shutdown 'noobs' (from the terminal)?

I tried sudo shutdown now and it seems to go through the process and then tells me that the root account is locked 'starting shell'.

So, after a few seconds I end up back at the shell prompt.
by Lonewolff
Thu Feb 19, 2015 3:18 am
Forum: General discussion
Topic: Got my Pi 2 yesterday
Replies: 2
Views: 491

Got my Pi 2 yesterday

Hi Guys,

Got my Pi 2 yesterday and so far it works great.

I have also got 2 model B's that I got a while back.

I am impressed with the performance of the Pi 2. The desktop environment is now very usable and responsive.

Anyway, lets see what cool projects I can come up with for the new beast :)
by Lonewolff
Wed Feb 18, 2015 8:54 am
Forum: Troubleshooting
Topic: Harddrives not recognised
Replies: 14
Views: 1163

Re: Harddrives not recognised

Hmmm, still sounds like it's not getting enough juice to power it.

Do you have an iPad charger? You should be able to plug one of the double leads into that to verify this is the issue.
by Lonewolff
Wed Feb 18, 2015 8:31 am
Forum: Troubleshooting
Topic: Harddrives not recognised
Replies: 14
Views: 1163

Re: Harddrives not recognised

Possibly not enough power to drive the external HDD's? (Assuming they are powered by the USB port).
by Lonewolff
Tue Feb 17, 2015 6:56 am
Forum: General discussion
Topic: Cooling Fan
Replies: 8
Views: 2129

Re: Cooling Fan

If you get an appropriate transistor to connect to the GPIO pin you want, you'll then be able to provide as much current as you like (within the limitations of the power supply of course :D ).

If you want I can sketch up something and show you what I mean.
by Lonewolff
Mon Feb 16, 2015 8:15 pm
Forum: General discussion
Topic: Best OS for Pi 2?
Replies: 24
Views: 43259

Re: Best OS for Pi 2?

Ok I do not always think about the newer to programming bunch. My bad. Don't stress. I am certainly no newbie to hardcore coding (and Electronics was what I studied at Uni as a kid - topping every year BTW too 8-) - so best of both worlds) ;) This is something I'll definitely be looking at also. He...

Go to advanced search