Go to advanced search

by woodystanford
Sat Feb 25, 2017 10:28 pm
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

Re: BMP Out in C

Do you need a way to just output an image in C without messing with librarys, external dependancies or even a *.h file? It will work with ANY version or flavor of C as it is written to be 100% ANSI C. Its only draw back is that it isn't real-time. Here is some code you put into a file called "graph...
by woodystanford
Sat Feb 25, 2017 10:12 pm
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

Re: BMP Out in C

Here are the functions for graph_graph All of the parameters are set in the graph structure. It supports up to 10 simultaneous graphs. IMPORTANT: A graph is not the actual image of the graph but rather a list of parameters that describes the graph. To RENDER the graph, you call plotgraph and put in ...
by woodystanford
Sat Feb 25, 2017 9:53 pm
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

Re: BMP Out in C

OK, got a treat for you guys. Now you have a way to get an image out to drive in all situations (all C situations), how about if you need a graph. Here is a C source file that you can just include thus: #include "graph_graph.c" (put it under the include for the graph.c because it requires graph.c. S...
by woodystanford
Sat Feb 25, 2017 5:17 am
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

Re: BMP Out in C

This how easy it is to use. An example program: (Also note that graph.c needs stdio.h, string.h, stdlib.h and math.h . These are standard C headers. Just make sure that you include these in whatever C program you are writting.) #include <stdio.h> #include <string.h> #include <stdlib.h> #include <mat...
by woodystanford
Sat Feb 25, 2017 4:36 am
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

Re: BMP Out in C

OK, here is a complete list of the available functions that you can call in graph.c To use, remember you have to call initgraph3() first at the top of your main function. initgraph3() : initializes your graphics subsystem setcolor(int vp, int r, int g, int b): sets the current color for viewport vp ...
by woodystanford
Sat Feb 25, 2017 4:28 am
Forum: Graphics programming
Topic: BMP Out in C
Replies: 25
Views: 5647

BMP Out in C

Do you need a way to just output an image in C without messing with librarys, external dependancies or even a *.h file? It will work with ANY version or flavor of C as it is written to be 100% ANSI C. Its only draw back is that it isn't real-time. Here is some code you put into a file called "graph....
by woodystanford
Sat Feb 25, 2017 4:08 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK here is an output from our flight simulator. Some might scoff that it isn't that sophisticated (as it doesn't use OpenGL or whatever) but this gives us the information we need. The flight plan is in white and is basically a top view (with 2 meters = 1 pixel) that shows the autonomous flight plan ...
by woodystanford
Sat Feb 25, 2017 1:46 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK, you don't have to do everything with a tool. Sometimes whipping out the ole paper and pencil is what's called for. Here is our "flight plan". ***IMPORTANT **** I might have forgotten to tell all of you this beforehand but these designs are NOT completed, so don't try to build them right off of t...
by woodystanford
Tue Feb 21, 2017 10:07 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK, here is some interesting stuff with how I'm coding my drone. Its not a typical drone but more of a tiny UAV. Its initial testing is going to be on a pre-programmed autonomous system that executes a flight plan and it just executes that flight plan. I have the fmm model coded (compiled but not te...
by woodystanford
Tue Feb 21, 2017 9:58 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

The BeagleBone PRUs pose a distinct advantage for real-time applications like drone control. The Pi is less predictable since it runs a desktop-style Linux. Yes. This is helpful. Thank you ghans. I was actually wondering about the architecture of the R-Pi if it did have "real-time units" like the B...
by woodystanford
Mon Feb 20, 2017 10:07 pm
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK, back to GUI. Now a lot of you are in doubt about GUI, or graphic user interface. Perhaps I should use Visual C/C++? Try Visual Basic.NET. It is something called a RAD (Rapid Application Development environment) and we are hobbyists and serious enthusiasts. Its a bit of a mystery to why everyone ...
by woodystanford
Mon Feb 20, 2017 7:53 pm
Forum: HATs and other add-ons
Topic: Infrared Add-On for location info?
Replies: 3
Views: 731

Re: Infrared Add-On for location info?

How about getting some masking tape and lay it down within the chessboard surface, and just do an optoelectronic "line follower" algorithm. You just have enough of a difference between floor reflectance and tape reflectance that stays within certain ranges on your ADC channel(s). Another though I ha...
by woodystanford
Mon Feb 20, 2017 6:59 pm
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK, I'm just going to do what I do at Beagleboard. Just gonna talk about what I'm doing and tell all of yuz how its done. :D BTW I'm joking around with most of this but will still be the best read you've had today. "OK, I need a GUI." Guess what, UN*X doesn't do GUI. What you've heard about it is tr...
by woodystanford
Mon Feb 20, 2017 5:40 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

You can see a lot more stuff how I designed it and some preliminary schematics and PCB traces at: https://groups.google.com/forum/embed/?place=forum/beagleboard&showsearch=true&showpopout=true&showtabs=false&hideforumtitle=true&parenturl=http%3A%2F%2Fbeagleboard.org%2Fdiscuss#!category-topic/beagleb...
by woodystanford
Mon Feb 20, 2017 5:31 am
Forum: Automation, sensing and robotics
Topic: Making a Drone
Replies: 15
Views: 2499

Re: Making a Drone

OK, where am I at? Currently have most of the parts. Really gotta say that the Chinese stuff on ebay really rocks and its the right price. Not made of money these days. Still like BB and Adafruit, but a guy has to eat. Got my MCU6050 (intertial) and my NEO6M (GPS) in and about half of my motors (ang...
by woodystanford
Mon Feb 20, 2017 3:33 am
Forum: Automation, sensing and robotics
Topic: Detecting car thru window?
Replies: 18
Views: 3373

Re: Detecting car thru window?

What you do is use a matched IR laser diode and phototransistor. Now here's the trick with it. Even IR has a lot of ambient light on its frequency so what you have to do is "modulate" the emitter. Its the modulation that does the detecting, not the IR beam itself. The modulator and the detector are ...
by woodystanford
Mon Feb 20, 2017 3:13 am
Forum: Automation, sensing and robotics
Topic: Crash information system for an electric car
Replies: 1
Views: 284

Re: Crash information system for an electric car

Yes, the raspberry pi can do anything. Everyone knows this. What you do is you take your PI and buy one of these: http://www.ebay.com/itm/like/351651515933 Its like $50. Now don't quote me on this (as I know it works on the Beagleboard and the PI's basically the same) but it takes like two seconds t...
by woodystanford
Mon Feb 20, 2017 2:44 am
Forum: Automation, sensing and robotics
Topic: bedroom automation
Replies: 17
Views: 3872

Re: bedroom automation

ok, how about this young man? The nice fellow is merely saying that he has better thing to do than be caught by the internet police for discussing HVAC with a minor. Ummm, how about if you set your R-PI to hotspot mode and whenever it hasn't served a web page for a few minutes it turns the lamp in y...
by woodystanford
Mon Feb 20, 2017 2:00 am
Forum: Automation, sensing and robotics
Topic: 24bit ADC + 16bit DAC ?
Replies: 6
Views: 3048

Re: 24bit ADC + 16bit DAC ?

You know I'm usually into things like this, but I gotta say, just put a little more work into your front-end. lol
by woodystanford
Mon Feb 20, 2017 1:11 am
Forum: Automation, sensing and robotics
Topic: Hertz to RPM car tacho problem
Replies: 11
Views: 2663

Re: Hertz to RPM car tacho problem

OK, here is the full code for an example program with the interpolator code. The actual interpolation function is only about 3 lines so you can just translate it to whatever computer language you use. The magic comes in loading the inter array with measured values. It then interpolates the best RPM ...
by woodystanford
Mon Feb 20, 2017 12:34 am
Forum: Automation, sensing and robotics
Topic: Temperture Recorder - Standalone
Replies: 8
Views: 1366

Re: Temperture Recorder - Standalone

...I'm not there yet but I... PC, if I had a dime for every time I've read this one phrase...etc....etc.... It's up to us older guys to figure these things for these young people. How do you code a service-type deamon? How do I actually set my GPIO configuration? How do I "fork"? How do I invoke a ...
by woodystanford
Mon Feb 20, 2017 12:23 am
Forum: Automation, sensing and robotics
Topic: How to connect several ultrasonic sensors as a single set
Replies: 9
Views: 1602

Re: How to connect several ultrasonic sensors as a single se

Ok, ok, ok, I have a schematic for it (since we know you can believe everything on the inet).

Image

My lame attempt at humor. :D
by woodystanford
Mon Feb 20, 2017 12:11 am
Forum: Automation, sensing and robotics
Topic: How to connect several ultrasonic sensors as a single set
Replies: 9
Views: 1602

Re: How to connect several ultrasonic sensors as a single se

OK, ok, everyone back up for a sec. Laser interferometry. Go with me on this one. OK load cell marries an interferometer. What you do is you look at it from a strain point of view. You bounce the two LED beams such that it causes "dead spots" in the beam. These areas of destructive interferance "mov...
by woodystanford
Mon Feb 20, 2017 12:02 am
Forum: Automation, sensing and robotics
Topic: How to connect several ultrasonic sensors as a single set
Replies: 9
Views: 1602

Re: How to connect several ultrasonic sensors as a single se

How about load cell? Whenever you sense an increase in weight, you know someone has thrown something in it?
by woodystanford
Sun Feb 19, 2017 11:44 pm
Forum: Automation, sensing and robotics
Topic: How to tell if a pump is running?
Replies: 6
Views: 1280

Re: How to tell if a pump is running?

It depends what matters to you. If you really need to know that the pump is moving liquid go for a flow sensor or differential pressure sensor. If you just need to know that the pump is energised just monitor the terminal voltage. I like the voltage idea thinking about it some more. See the cool th...

Go to advanced search