You need a raspberry pi running and ideally it boots into a shell or you start a terminal shell from the GUI. Then you need any text editor. You can use geany with the full GUI / IDE etc but I think doing a small program with just a text editor strips away all the confusing fluff and leaves you with...
What your saying you want to do is insane and if you go through with it then you will just end up destroying your relays. Even a bass bump would send a few hundred transitions to your relay. What you need to do is to find the low pass filter of the RMS of the waveform (the waveforms power) and then ...
Since you want a years worth and say that you want 5 mins of video for that footage then at 25fps thats about 1 frame per hour for a year. So if you can make a car battery powered timer circuit that powers a relay for your 12V to 5V PSU then you can set it to power up once per hour. The raspi could ...
I think you may need an == instead of = as well. Maybe. Its hard to read the code like that. Looks to me like you need to set the GPIO_CLR value in which case putting that in a while loop seems like it might loop forever. Using macros like this is poor style. You should only do this if you need the ...
Not sure that this specific input is something its designed to catch but maybe in the future we will say the solution to your issue is to turn on the undefined behaviour sanitizer.
The raspi foundation does appear to have a great service provider and is doing a fantastic job at hosting all the tools, images and repos for the board - not to mention having a working forum. Your right - its probably a non - issue. Its just that storage is cheap and the repos are already mirrored ...
No I havent had an issue with the downloads page and I did ask this question at the end of a different question which was related but not the same. Still, after all of this nobody has yet posted an answer. So I take it there are no mirrored copies of the images through a source other than a) torrent...
Does anyone have a list of mirror URLs for the latest raspian images. To be clear this is not the raspian repositories but the SD card images. The 1Gb zips or the 3Gb IMG files ? I know they are available from raspberrypi.org but that is not what I am asking about. If the normal downloads page is un...
I cant specifically help, not having boost etc loaded up right now but the issue is that one of the boost headers has forward declared the tag::variance type but has failed to fully define it. I would expect that there is another header that you would need. My guess is that accumulators/accumulators...
See the latest (free) working draft: https://isocpp.org/files/papers/N3690.pdf page 26 -> "Escape sequences in which the character following the backslash is not listed in Table 7 are conditionally-supported, with implementation-defined semantics." I.e. It's an undefined escape sequence so all bets ...
The BMP file format has a bitmap header and a bitmap info header then if you set those up correctly then you fwrite out your RGB bytes in the selected format and write out the termination characters to end the file. In Windows you can do this using some API calls. In linux / Raspberry PI land you ca...
That article doesnt seem to highlight the most important feature of size_t enough. Size_t is always unsigned and at least 16 bits but otherwise its bit depth is not specified as part of the language. Neither is unsigned int for that matter. But it is not always the case that unsigned int and size_t ...
No probs. When I code I have gotten into the habit of naming vars with units now. So I would have named that shutter_speed_in_uS or something. Hopefully someone will file that bug and get that fixed.
First of all its not the full code since you have used (*this).items. Basically the header declaring the class of stat data has a member called "items". The calling of this function will alter items as a byproduct of the call. Therefore its not const at all. So you should not declare it as such. The...
Shutter speed of 100 sounds low. Is that 100 uS or does the api specify it as a fraction of a sec. The command line raspistill is in uS and I use something like 10,000 or 100,000 kind of range. Maybe with exposure not on auto its using the too short shutter speed and giving a black image.
Thanks Gordon. It sounds like this is known behavior and that there is such as thing as too short and ill just assume that its necessary to have some delay before the camera is ready. Maybe the documentation or the --help should reflect that the CCD needs time to stabilize and that 750 or 1000 is a ...
Hi, I have a couple of cameras on pi's and I have a small identical problem with all of them. I wondered if anyone could point me at the documentation for why its happening, confirm that other people see it, or maybe post an explanation. The issue is that if I run the cameras with raspistill and use...
A general resource for anyone really. An (Wavefront) OBJ type format model of a model B with SD card and Camera board. I made these for myself to virtually design boxes and fittings but thought that others would possibly find these useful. Units are in mm, objects contain shape info but no textures ...
I wasn't aware that there was a CPU cycle counter on the Raspi but I did know of the 1us hardware timer/counter on the PI which is accessible through a driver (which I have used and works well). I am not sure if were talking about the same thing or I am lacking some knowledge about a different one. ...
The main reason makefiles are so incomprehensible is that there is usually only that one guy who knows what hes doing and the rest just take another makefile and hack it about a bit without knowing exactly what they are doing. Make the syntax is bloody awful but then its still the best language for ...
I looked at the spec and wrote a GPIO driver and use it to toggle pins and do stuff. So its not that big a deal. I also program PICs and I have used it to interface the raspi to some 12F629's to send some data to them.
Sounds like you might use the internal pull up resistors or add some high value ones of your own to one half of the IO bank and then set them to inputs. On the other half you set them as outputs and set them all high and put in some lower value resistors (say 1/10th value). Then sequentially lower o...
I'll just chip in and say when I built myself a new kernel and installed it, it has since rebooted after shutdown in a similar manner to that posted by OP. I have not tried to fix it and still don't know why its doing it either. I use "sudo shutdown -h now". It runs through the power down scripts an...