Go to advanced search

by panik
Sat Feb 28, 2015 2:33 pm
Forum: HATs and other add-ons
Topic: reset_on / off no longer work
Replies: 6
Views: 5473

Re: reset_on / off no longer work

Very true, eventually someone will have to come up with a better answer. This solution will not last forever.
by panik
Thu Feb 26, 2015 10:18 pm
Forum: HATs and other add-ons
Topic: reset_on / off no longer work
Replies: 6
Views: 5473

Re: reset_on / off no longer work

Confirmed. To have it work again, disable the Device Tree. Do this by adding 'device_tree=' to the end of '/boot/config.txt'. sudo nano /boot/config.txt Scroll down to the end, and add: device_tree= ctrl-x, y, enter, and reboot.[/s] Hopefully a temporary solution, but it works for now. Edit: Probabl...
by panik
Thu Feb 26, 2015 6:22 pm
Forum: General discussion
Topic: rpi-update considered harmful
Replies: 17
Views: 4735

Re: rpi-update considered harmful

Just put it back where it started on Github and not installed as default. This is the best option I think. It would still be available if you're absolutely sure you need it. It surprised me to find that it was installed by default. If it really must be in the repo, at least have us apt-get install ...
by panik
Sun Feb 15, 2015 7:47 pm
Forum: HATs and other add-ons
Topic: Power Available to HAT
Replies: 3
Views: 1461

Re: Power Available to HAT

Not what you asked, but mentioning it for comparison; for the Pi Model A and B "The maximum permitted current draw from the 3.3 V pins is 50 mA." source: http://elinux.org/RPi_Low-level_peripherals . For the A+, B+ and 2B, things are *much* better than before. Adafruit has an article on it: https://...
by panik
Fri Feb 13, 2015 2:02 pm
Forum: HATs and other add-ons
Topic: Introducing "ARMinARM", an STM32 Cortex-M3 breakout board
Replies: 21
Views: 21005

Re: Introducing "ARMinARM", an STM32 Cortex-M3 breakout boar

Some updates: Raspberry Pi 2 The toolchain is recompiled for ARMv7 to be used on the Raspberry Pi 2 B. But it turns out that the ARMv6 version is still (ever so slightly) faster on ARMv7 so I kept the old version in place for all Raspberry Pi versions. The uploading tool was broken in the new Raspbi...
by panik
Thu Feb 12, 2015 8:55 pm
Forum: General discussion
Topic: script friendly word processing tool for Pi
Replies: 14
Views: 1569

Re: script friendly word processing tool for Pi

I want to make another case for markdown (@ghans already mentioned it). It's really awesome because the source is just perfectly readable plain text without any obvious 'tags' and looks 'as if it was intended like that' in any text editor or terminal. Link: http://daringfireball.net/projects/markdow...
by panik
Sun Feb 08, 2015 2:01 pm
Forum: Advanced users
Topic: Is there a gcc-arm-none-eabi package available?
Replies: 4
Views: 6884

Re: Is there a gcc-arm-none-eabi package available?

you can use the normal GCC with -nostdlib -mcpu=cortex-m0 . You will only need downloading libgcc_s That works in theory, but I ran into trouble when trying to compile anything more complicated than a simple blinky.bin. The ideal solution for me was to replicate the experience as on a regular deskt...
by panik
Sun Feb 08, 2015 12:22 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: /sys/class/gpio behaviour changed in newer Raspbian?
Replies: 5
Views: 15701

Re: /sys/class/gpio behaviour changed in newer Raspbian?

Ah yes, that explains it. After disabling it by adding 'device_tree=' in /boot/config.txt, the old behaviour is back.

I'll look into cleaner ways of handling this new 'device tree' thing, but at least everything is working again for now.

Thanks for the in-depth answer!
by panik
Sat Feb 07, 2015 9:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: /sys/class/gpio behaviour changed in newer Raspbian?
Replies: 5
Views: 15701

/sys/class/gpio behaviour changed in newer Raspbian?

Interfacing /sys/class/gpio on the new firmware (Raspbian 2015-01-31) seems different than older firmware. On older firmware, the following script leaves an LED connected to GPIO 4 on after the script finishes (and keeps the pin an output). In the new firmware, the LED turns off after 1 second (and ...
by panik
Fri Feb 06, 2015 2:58 pm
Forum: General discussion
Topic: Raspberry Pi 2 Model B CPU not centered. Should I worry?
Replies: 12
Views: 2311

Re: Raspberry Pi 2 Model B CPU not centered. Should I worry?

Aah, the joy of slapping the TV at *just* the right place with *just* the right amount of force to get the picture back. Oddly satisfying.
by panik
Fri Jan 23, 2015 3:09 pm
Forum: General discussion
Topic: Coding Questions
Replies: 38
Views: 5574

Re: Coding Questions

Heater, OOP certainly has its problems and I'm not defending it. You point out good examples of where it can go wrong or is awkward. Depending on the problem you're trying to solve, those problems can be hypothetical and the code even might not need refactoring at all. Only the programmer knows that...
by panik
Thu Jan 22, 2015 2:50 pm
Forum: General discussion
Topic: Coding Questions
Replies: 38
Views: 5574

Re: Coding Questions

Yes, but having to structure your programs as a class based hierarchies will eventually drive you insane. The world is not like that. As someone said, "if you design a game with classes for weapons and tools, how do you kill someone with a hammer?" Having your classification defined up front makes ...
by panik
Mon Jan 12, 2015 6:45 pm
Forum: Beginners
Topic: Raspberry pi and arduino
Replies: 20
Views: 2432

Re: Raspberry pi and arduino

Unfortunately, the Arduino (Uno) uses the 'Serial' class for both the USB CDC and the RX/TX on the D0 and D1 pins. So I'm afraid that's not possible. After a meal and a second thought; you could use only the USB-serial part of the Arduino and bypass the ATmega328 completely. Remove it from its sock...
by panik
Mon Jan 12, 2015 4:30 pm
Forum: Beginners
Topic: Raspberry pi and arduino
Replies: 20
Views: 2432

Re: Raspberry pi and arduino

So you want to use the Arduino as if it was an FTDI cable or similar to log into the Pi from your computer using serial? That's good thinking actually, pretty smart! There is USB CDC functionality available on the Arduino Uno. So why not use it? Unfortunately, the Arduino (Uno) uses the 'Serial' cla...
by panik
Wed Jan 07, 2015 5:27 pm
Forum: HATs and other add-ons
Topic: Programming the Gertduino with c
Replies: 6
Views: 6142

Re: Programming the Gertduino with c

The following code returns (echoes) whatever you typed in minicom (between brackets and adds a newline). It's interrupt based, see the ISR(USART_RX_vect) method. Most of the code is straight from the datasheet. You could also disable the USART receive interrupt in usart_init(), and use usart_data_av...
by panik
Mon Dec 29, 2014 12:02 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Anyone interested in testing my avrdude with SPI support?
Replies: 23
Views: 8376

Re: Anyone interested in testing my avrdude with SPI support

Is it possible to use the version Gordon made without using the gertboard as well? Yes, Gordon's avrdude works with almost any AVR you throw at it, including the one on your breadboard (if it's listed in avrdude.conf, but the ATmega328p is). Good topic merge! I've stuck with using the 'native' linu...
by panik
Sun Dec 28, 2014 4:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Anyone interested in testing my avrdude with SPI support?
Replies: 23
Views: 8376

Re: SPI programming of Arduino without gertboard

I've also tried commenting out the communication bit as well as changing it to SPI or serial. No matter what I try the serial port option under tools remains greyed out and com1 remains stubbornly selected! :( It doesn't matter that 'com1' is still selected (but greyed out). You don't want to use t...
by panik
Sat Dec 06, 2014 3:24 pm
Forum: General discussion
Topic: Build to run Solidworks?
Replies: 2
Views: 2062

Re: Build to run Solidworks?

HelloStranger wrote:I need to use Solidworks for school but it's not compatible with Mac. I only have MacBook Pro.
Your best bet is probably to install Windows on your MacBook Pro with Bootcamp (making it dual boot).
by panik
Mon Dec 01, 2014 12:04 am
Forum: General discussion
Topic: Is a raspberry pi right for what i want?
Replies: 9
Views: 1464

Re: Is a raspberry pi right for what i want?

If you're going to decide to use XBian as @kusti8 suggests, you could also 'ssh' into XBian and 'sudo apt-get install ...' what's needed for a LAMP server and run them both at the same time. Combine instructions here: http://htpcbuild.com/htpc-software/raspberry-pi-xbian/connecting-to-xbian-ssh/ and...
by panik
Sun Nov 30, 2014 7:58 pm
Forum: General discussion
Topic: Is a raspberry pi right for what i want?
Replies: 9
Views: 1464

Re: Is a raspberry pi right for what i want?

danbywinby wrote:But would I be able to use it as a media centre and a test web server?
That should be possible, yes. Most things can be installed alongside each other.

There's a dedicated 'media centre' section here, btw: http://www.raspberrypi.org/forums/viewforum.php?f=35
by panik
Sun Nov 30, 2014 7:29 pm
Forum: General discussion
Topic: Is a raspberry pi right for what i want?
Replies: 9
Views: 1464

Re: Is a raspberry pi right for what i want?

web development (HTML, CSS) If you want to step your web developing up a notch with (for example) PHP and MySQL, the Pi makes a great LAMP test server. The Pi is a very versatile little bugger. I have a couple of them on the network around the house doing various things. If you have the right expec...
by panik
Thu Oct 30, 2014 7:33 pm
Forum: HATs and other add-ons
Topic: Getting Started with the Embedded Pi and Raspbian
Replies: 6
Views: 7163

Re: Getting Started with the Embedded Pi and Raspbian

For those who still have trouble using the Raspberry Pi as flasher or JTAG for the Embedded Pi, my notes are here: http://log2.ch/2014/stm32-and-jtag-via-raspberry/ Excellent blogpost! Thanks for mentioning the ARMinARM board! :D About your instructions, you probably need to run './bootstrap' befor...
by panik
Sun Oct 19, 2014 1:39 pm
Forum: General discussion
Topic: Second-hand Market for Raspberry Pi project materials
Replies: 3
Views: 1037

Re: Second-hand Market for Raspberry Pi project materials

What I understand from the (not very clear) instructions of the Hamster Party Cam is that you need to break apart the wind speed sensor and only use its reed swith and magnet. Maybe it's easier and cheaper to just buy a reed switch and a magnet somewhere (digikey, farnell, adafruit, sparkfun, ...)? ...
by panik
Thu Oct 16, 2014 2:27 pm
Forum: C/C++
Topic: #include <> versus #import " "
Replies: 4
Views: 966

Re: #include <> versus #import " "

Could the source code be Objective-C perhaps?

While it's totally possible to compile Objective-C with gcc on the Raspberry Pi, you'll run into trouble if it uses Apple specific libraries. Also: http://gcc.gnu.org/onlinedocs/gcc-3.3.4 ... aders.html

Anyway, just guessing.
by panik
Thu Oct 02, 2014 10:55 pm
Forum: C/C++
Topic: can't displaying image using sdl
Replies: 2
Views: 891

Re: can't displaying image using sdl

^ That should solve the 'image is null' problem (and shows the image in X). Also change: screen = (SDL_SetVideoMode(320,240,32,SDL_SWSURFACE)); to const SDL_VideoInfo* videoInfo = SDL_GetVideoInfo(); screen = SDL_SetVideoMode(videoInfo->current_w, videoInfo->current_h, videoInfo->vfmt->BitsPerPixel,...

Go to advanced search