so I really need help, i always want to learn how peiople make outside programs that interact with arduino and i just cant google it, i need help to learn how to do this
basically what i need is to, take a 3D model, probably STL, and then slice it into layers, like a 3d printer, then take those layers, and be able to read them on an arduino and depending on if a servo is locvated on the place that the model layer is on, i need it to turn on.
so for example, if we take a triangle pyramid, lets say i figure out how to slice it into 10 layers, then ill take layer 1, and layer 10, at layer 1, i need to somehow tell the arduino to turn on servos that are located on where the triangle is on that layer, and servo outside the triangle wont turn on, heres a picture to explain:
so as you can see, what i want to do is just tell the servos that are located inside of the sliced picture turn on, i need to do a bit more stuff than that but if i get that going i can later further explain
PLEASE help me or atleast tell me wher i cna learn these types of things i am very willing to spend my life douing this but i am too young and havnt learned much in school (grade 9) yet
ill also take any advice that teaches me how to just use things like Ramps 1.4 boards or anything thats not like standard arduino, i have no clue how this stuff works and i want to learn, i dont get how you can get stepper motors and servos working without an arduino, how do people use regular circut boards and how can i use a ramp board and things like that
i just need somewhere that i can learn how to fully use microcontrollers and learn this stuff, i have use beatwrite before with firmata but i didnt understand it, just used it, so i am wondering what this firmata is, how i can make my own programs to use it with and how this all works
I suggest to buy an Arduino, download the free IDE and start working your way though all the simple programming examples that come with the IDE. Plenty of tutorials on the web, too.
alreayd have owned several arduiunos, already know how to code dc motors, steppers, servos, etc suoer simpole stuff, i wanna know how poeple can do this cool stuff with arduino, things you cant just program in the arduino IDE.
this simple move motor 180 stuff frustrates me, i need to learn how to use outside programs with arduino in tangent to create anything i want.
lets say for example, an arduino 3d printer, thats poretty much what i wanna do plus and munis some steops, but you cant code that in the IDE, you need something more, i need to know YTHAT stuff, not simpole exmaples
i know for a fact that you cannot load a 3d model file (STL) and SLICE it into layers, then read it and convert that into digital outputs in the arduino IDE. there is no library for that becuase you cant just simply "load a file" into the IDE, its just command codes and some sensors
this is the kind of stuff i need to learn, i know python already and some javascript, but how can u just simply "read" the sd card gcode that it send out? do you have any tips on where you learned this stuff?
I am a grade 9 student, school is bullshit i can ace math tests and science exams. but i am not learning what i need. none of my teachers know anything about tech or micro controllers, or the world of programming.
I need help. Basically i need to know where i can learn things that are not basic arduino code.
I know how to turn on a stepper motor, move a servo with a pot, flash lights and things like that, simple thing you know.
i need to learn where i can interact with an arduino from outside programs and PLEASE tell me if i am thinking about this incorrectly, but i need to be able to interact with outside programs or go things like that.
for example, i am trying to learn how to slice a 3d model, take one of the sliced pictures, and be able to turn on servos depending on if they are located within the model:
if it is in that triangle, i need servos to turn on. but thats one project.
i just need to know where i can learn these things, from what i can see, the arduino examples are just turning on motors, and doing basic garbage.
again, PLEASE help me understand if i am saying this incorrectly
You don't interact with it outside a program. You interact with the program.
To learn, just think of a project and try to build it. But a pro tip, don't go full in right away... So 3d modeling slicing, mains, high currents etc is something to keep away from at the start. Just think of a more realistic project.
Yeah, Arduino shows you basics. After that it's up to you to think about projects to use the basics in and learn. But after learning about "space" and "fire" you don't start to design a rocket right away... Just take smaller steps
Btw, the 3d model thing is more something for a PC rather then a uC. A triangle etc is reasonable for a uC but complex 3d model forms are way harder to do... If you want that, just try to do that on a PC first and sent the data to a controller for servo's (can be an Arduino).
alright you guys dont understand what i am trying to say, nor can you probably comprehend it.
also picking on someones grammar on the internet is so foolish, get with it its 2016 no one cares about grammar on the internet if my general point is across is a simple way, which capitals letters, do not help with
"then send it to the Arduino"
Send what? The whole damn file? While a sliced 3d print is easy for a modern computer it's not all that simple. Just try to make a PC program to do something with it first and see for yourself. But that's just learning to program on a PC. Pick your language there
If you want to do it, just do the heavy lifting on a PC and send the servo commands to an Arduino. Sending the commands you can easily do via the serial connection. And Delta_G is right in that
If you want to learn how to be a better embedded programmer pick another project
We can only comprehend as good as you can explain what you want to do
Maybe you as a 9 grader don't care about basic grammar but we care do on this forum. Ifyou readyjustWantTo typ a postthewayyoulike then maybe find another place to "learn". Btw, the compiler DOES care about "grammar" as well
To address your initial question, about slicing STL files. Have you looked at an STL file? Do you understand what the file contains?
If so, how good are you at planar math? Intersecting a series of triangles (that's what is in an STL file) with a plane is not terribly challenging. The intersections are lines. Once you know which lines are created as a result of intersecting a given plane with all the lines, then all you need to do is chain the lines in the proper order. While that sounds simple, some plane/triangle intersections may result in very tiny line segments. What segment length can you afford to ignore? How will you store all the line end point data? Don't forget that you may have multiple domains, resulting in multiple chains.
What will you do with the data once you have it all chained together? Now, you have a bounded area on a plane. Determining if a point (some coordinate for each servo) is inside a bounded region, or not, is a relatively simple process. Draw a line through the point. The orientation doesn't matter. Intersect the line and the boundaries. Order the intersections along the line. Determine if the point of interest is before the first intersection point (it is outside the bounded region), or after the last point (again, it is outside the bounded region). If neither case is true, the point is inside the bounded region, but might be in a hole in the bounded region. Now, you have to determine if the point of interest is between an odd and even numbered boundary point (it is in the bounded region) or between an even numbered point and an odd numbered point (it is in a hole).
With a little thought, nothing about the process you envision is all that hard. But, doing all the computations in the confines of an Arduino? That might be very hard.