The Stack Overflow podcast is back! Listen to an interview with our new CEO.
23

I've looked into bare metal programming on the Raspberry Pi and it sounds like what you want to do. There are several good forum topics about bare metal programming with some people who have put in a lot of effort to get their code to work. Check these out for getting started: Guide to Beginning Bare Metal on Raspi Programming the RPi on the bare metal ...


17

One of the main reasons why wiring buttons and logic to GND is favoured (and then copied all over the internet) is because of power optimization. Pulling a pin LOW with resistor to GND costs 0 watts. Pulling a pin HIGH with resistor to +Vcc costs power. On complex circuits or circuits that rely on batteries this power is very precious. Other reasons ...


13

Projects to add shutdown and startup functionality to Pi: http://hackaday.com/2013/01/17/raspberry-pi-power-controller-adds-shutdown-and-startup-functionality http://www.kickstarter.com/projects/pisupply/pi-supply-intelligent-power-switch-for-raspberry-p There is also a solution to switch Pi on/off but it does not cut the power so it is not suited for a ...


9

There are complex historical reasons why electrical engineers typically pulled inputs high with resistors, and used switches to ground them. However these reasons are not particularly relevant to the hobby use of the Raspberry Pi. Use whatever makes sense to you. If you are making a commercial product, or want your design to be slightly better, you'll ...


8

As far as I know no-one is providing a purpose built Raspberry Pi faraday cage. However, making one yourself is fairly simple as the core component is usually a simple aluminium mesh. Here's a decent tutorial that you can follow.


8

A Faraday cage will provide shielding from electromagnetic radiation, but this is unlikely to be the cause of your problem. I assume you are connecting the Pi to external circuitry (you don't give us much to work on) and this is almost certainly the problem. There are many established methods for protecting these, ranging from ferrite rings for common mode ...


8

As shown this circuit cannot drive two LEDs the way you want it. Consider GPIO-pin high: L2 lights up, L1 does not. GPIO-pin low: no LED lights up as there is no (significant) potential difference (aka voltage) between GND and the GPIO-pin, thus no current flows, no light. There are however ways to do what you want. This tutorial (source of the figures ...


8

There's not quite enough information in your question to give a definitive answer, but let's go through the design steps so that not only can you figure out this one, but you might be better equipped to solve the next transistor question that occurs to you. Ohm's law Ohm's law expresses the relationship among resistance (R), current (I) and voltage (V): V ...


7

Have a look here: How to have a Raspi trigger a Remote Control physically Needs some ideas to trigger silicone rubber buttons A solenoid with a moveable pushrod can be driven fairly quickly and develop the force to push a button. They are usually cheap and easy to energize, e.g. using a simple transistor to drive the current (see here). Update 01/2019 ...


7

I believe the most appropriate device would be a solenoid. They are quite common. For a simple button pressing solenoid, something like this might work well. I would recommend that you put a soft tip on the front so that repeated presses do not damage the button. https://www.sparkfun.com/products/11015


6

the only way it will boot is from a fat32 formatted sdcard, goes from poweron to gpu firmware loading that executes any arm binary file named kernel.img so if you want to make a custom kernel that does whatever it is you are looking to do its at this point


6

Logic levels are detected by input pins. The difference between an input pin and an output pin is that an output pin has a specific voltage applied to it. An input pin does not, and when not connected to anything, it is in a high impedance, aka. a "floating", state which essentially means the voltage fluctuates randomly. This is the third state in 3-state ...


6

You'll need just two things: Make use of the GPIO pins Using the GPIO port of the Pi is possible with numerous libraries for all significant languages. Finding one that interfaces well with Python or C is no trouble at all. Just have your pick, e.g. pigpio WiringPi Libraries for interfacing with the GPIO Use a relay to control the 12V power line A ...


5

Older PICs relied on the programmer to provide the timing for programming the Flash. I suspect that the RPi would be capable of getting those timings correct. The main difficulty in that case would be the level conversion from 3.3V to 5V for the PIC Newer PICs do the programming timing internally and some can be programmed at 3.3V. Those should be able to ...


5

Relays are pretty safe to use without any special isolation like optocouplers. The reason people recommend optocouplers in DIY projects... well because its DIY and an optocoupler is safer in case of something going wrong. The input pins power a coil and push or pull a lever using some kind of snap hinge to eliminate bounce and sparks. So you are already ...


5

The manual on the Trancend Website (see pjc50's answer) suggests that the unit will be recognised by a PC if a USB lead is connected to the mini-USB connector (C) on the SIDE of the case (not the full size one on the back). It says that a Linux kernel 2.4 or greater is required then any memory card inserted in the unit will appear for the PC to access (and ...


5

There is no risk in connecting the GND of the power supply and the RPi together - actually, to create useful circuits most of the time this is required so that the +9V from the power supply and the +5V/+3V3 coming from the Raspberry Pi are relative to each other on the GND. Regarding the +9V power though, you need to make sure that this does NOT come into ...


4

Pins 8 and 9 can be used as UART pins, so it should be possible to control a programmer over these pins.


4

I have created an IBM S/390 emulator in C# that theoretically will run under Mono/Linux as it compiles to CIL code and doesn't use any non-supported .NET resources. This will allow embedded solutions using platform independent control tables with a custom finite state machine interpreter. It would still have essential Linux O/S in the background though.


4

The best solution on my opinion is to use the UPS Pico , a specially designed for Raspberry Pi UPS, that offer a plenty of other features. It is low cost, includes battery, no need for any extra cable, just put it on top of RPi. Running on a car, and automatic shutdown, also running on XBMC.


4

Your config is good but i think is easier to make a ring! RasPi USB --> Hub-USB --> RasPi MicroUsb power Both solutions have the problem of groundloop You can avoid it by stripping the ground in the last connection: Hub-USB --> RasPi MicroUsb power or in your connection schema: RasPi USB --> Hub-USB 2A power adapter is enough: i tested it ...


4

Both Pin 2 and Pin 4 produce 5V so this is expected. Pin 4 was labelled DNC to start with, but it's always been a 5V pin, just an undocumented one.


4

I have no clue about model trains, but a quick Google search reveals that there are multiple projects for Linux which allow you to control model trains. It seems that Rocrail is one of them, and they even have a Raspberry Pi page in their wiki. You need to fetch one of their pre built packages, and install it: sudo dpkg -i rocrail-xxxx-wheezy-armhf.deb ...


4

You understand correctly - there is no problem at all


4

ESCs (Electronic Speed Controllers) are typically controlled just like you would control a hobby servo -- with a PWM signal. There are many guides to controlling a servo that should be applicable to the ESC. Since the Raspberry Pi is a 3.3V device you might need a level shifter if your ESC needs a 5V signal. Here is a tutorial for Raspberry Pi: https://...


4

It will be best to power the Raspberry Pi using a good 2Amp power supply. You will still need a transistor to drive the relay. But really relays are for high power, 24volts up to 220volts and heavy loads that use dedicated power supplies not connected to Micro controllers. You can get rid of the relay and just use a 2N2222 / TIP127 transistor to drive the ...


4

The B+ has 26 usable gpios. In that context 8 doesn't seem a lot. In effect you are trying to trade off the number of gpios used against complicating the circuit. Have you considered a port expander, such as the popular MCP23017? That connects to the I2C bus (two gpios, SDA and SCL) and provides an additional 16 gpios per chip. Up to 8 MCP23017 may be ...


4

I had exactly the same problem with these interrupt events under Python. I believe this is a sofware bug in the lib. I do not use these Interrupts anymore, but now I am polling the GPIO. This works perfect. The pulses has to be longer then 15 ms, as the Python sketch is scheduled by Linux. If you are interested, I can send the sketch. The Pi is used as a ...


4

It's easy enough to find solenoids, servos etc with the power to push a button. The tricky bit is the mounting. Humans are really very good at pressing buttons on arbitary things, compensating for slight changes in the position of the thing, compensating for the reaction force exerted on their own body. Where nessacery providing support for the thing the ...


4

The AM7338 is a dedicated Digital Picture Frame System on Chip (DFP SOC). It is a all in one single chip solution for DFPs, handling typical functions of buttons, IR remote, memory card and flash reading, USB host and slave, and most important, direct LVDS display interfacing. It is in the same family as other AM733x chips, and they all use the same general ...


Only top voted, non community-wiki answers of a minimum length are eligible