Beginning C for Arduino: Learn C Programming for the Arduino
Moderators: Chuckt, Garth, bitfogav
-
- I practically live here!
- Posts: 1127
- Joined: Sun Mar 28, 2010 1:36 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Beginning C for Arduino: Learn C Programming for the Arduino
Beginning C for Arduino: Learn C Programming for the Arduino (Technology in Action)
https://www.amazon.com/Beginning-Arduin ... 1430247762
The Kindle version is $7.95 to rent and $26.96 to buy. It is $16.42 used which sounds like a better deal.
I have not reviewed the book but this may be a stepping stone to learn new things with C.
I found another book that is about the same price:
C Programming Absolute Beginner's Guide (3rd Edition) 3rd Edition
https://www.amazon.com/Programming-Abso ... c+language
https://www.amazon.com/Beginning-Arduin ... 1430247762
The Kindle version is $7.95 to rent and $26.96 to buy. It is $16.42 used which sounds like a better deal.
I have not reviewed the book but this may be a stepping stone to learn new things with C.
I found another book that is about the same price:
C Programming Absolute Beginner's Guide (3rd Edition) 3rd Edition
https://www.amazon.com/Programming-Abso ... c+language
Re: Beginning C for Arduino: Learn C Programming for the Ard
C language isn't so hard to learn, even easier if you already know another programming language.. I have seen the C Programming for the Arduino book before and I think theres actually a second edition now
If you don't know what Voltage your country is using, you shouldn't be doing electronics
Re: Beginning C for Arduino: Learn C Programming for the Ard
I just now ordered that second book, because I've gone through the K&R book, "The C Programming Language," second edition, and if I had to take a test on it, I'd probably get less than a 30%. The C language seems to me to be an absolute disaster, and I often don't understand what they're saying, or understand the examples, even though I programmed in Fortran and a few versions of BASIC before. Too much cryptic punctuation, typing, and other things. My brain really does work more along the lines of Forth and RPN. When I went through Leo Brodie's book "Starting Forth," I had no such problems. Everything made sense immediately and I just took off with it.
Edit: I posted my beefs with C at http://wilsonminesco.com/stacks/Cbeef.html .
Edit: I posted my beefs with C at http://wilsonminesco.com/stacks/Cbeef.html .
http://WilsonMinesCo.com/ lots of 6502 resources
-
- I practically live here!
- Posts: 1127
- Joined: Sun Mar 28, 2010 1:36 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Ard
I learned Pascal in college. We were taught to define our variables first. It took a long time to program because I had to keep going back and forth through the editor to write the program and since the program didn't have line numbering, I kept getting lost. We actually wrote the programs in Word Perfect and compiled them with Borderland Pascal on the PC.
Our instructor at college didn't know how to teach. I bought two or three different books on how to program Pascal. Everyone had no idea what the instructor was teaching. The instructors basically tell you what to do and you have to learn it yourself so why do I need a instructor? The hardest command was function and I wouldn't have gotten the understanding without purchasing books that weren't assigned by the instructor who was head of the computer lab. I ended up spending days in the computer lab that weren't necessary if the professor was willing to teach. The reality is that schools are failing our students and I never needed Pascal after I graduated. I don't even know who uses it anymore as the program is a free download till someone figured they could charge for it.
Pascal was based on writing loops.
I was told that if I learned Pascal, C wasn't more difficult to learn.
Is academia failing graduates? Survey claims so
Our instructor at college didn't know how to teach. I bought two or three different books on how to program Pascal. Everyone had no idea what the instructor was teaching. The instructors basically tell you what to do and you have to learn it yourself so why do I need a instructor? The hardest command was function and I wouldn't have gotten the understanding without purchasing books that weren't assigned by the instructor who was head of the computer lab. I ended up spending days in the computer lab that weren't necessary if the professor was willing to teach. The reality is that schools are failing our students and I never needed Pascal after I graduated. I don't even know who uses it anymore as the program is a free download till someone figured they could charge for it.
Pascal was based on writing loops.
I was told that if I learned Pascal, C wasn't more difficult to learn.
Is academia failing graduates? Survey claims so
http://www.newelectronics.co.uk/electro ... so/153154/According to the survey, 41% of graduates have had to take an entry-level job below graduate level once they left university, while 26% of those surveyed regret the time and money they spent on their university education. Meanwhile, 28% of respondents said their degree courses were ‘outdated’ in relation to current requirements.
-
- I practically live here!
- Posts: 1127
- Joined: Sun Mar 28, 2010 1:36 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Ard
I ordered both books and I'm willing to learn it and help you through it if I can learn it on my own.Garth wrote:I just now ordered that second book, because I've gone through the K&R book, "The C Programming Language," second edition, and if I had to take a test on it, I'd probably get less than a 30%. The C language seems to me to be an absolute disaster, and I often don't understand what they're saying, or understand the examples, even though I programmed in Fortran and a few versions of BASIC before. Too much cryptic punctuation, typing, and other things. My brain really does work more along the lines of Forth and RPN. When I went through Leo Brodie's book "Starting Forth," I had no such problems. Everything made sense immediately and I just took off with it.
Re: Beginning C for Arduino: Learn C Programming for the Ard
That's pretty normal—at least to define them before they're used, although not necessarily at the beginning of the source code.Chuckt wrote:I learned Pascal in college. We were taught to define our variables first.
I always have a general sense for the order of the various portions of the source code, but then I use the search a lot as well as bookmarks in the editor. The editor's "condensed" mode is nice too, but that's why I don't like assemblers to require labels to start in column 1. Putting labels of only local interest starting in column 2 makes them invisible in condensed mode, since it only shows lines that have a character in column 1. It makes it a lot easier to find things sometimes.It took a long time to program because I had to keep going back and forth through the editor to write the program and since the program didn't have line numbering, I kept getting lost.
I understand Pascal puts huge amounts of data on the stack, up to and including even arrays (not just their address) and whole functions. That's about the limit of my knowledge of Pascal.
It sure is in electronics engineering! There was an editorial about this in one of the industry magazines years ago. It said the industry is telling academia, "You're not giving us the kind of engineers we need. We need ones who can do this, this, and this..." and academia responds, "Look, you know your field, and we know education. Leave the education to us, 'kay?", so the problem persists. It was a constant frustration for me in the years when I was hiring technicians and engineers. (I probably read over a thousand resumes, and I thought it would be fun to be a guest speaker in a classroom to tell how to write a resume. Some of what's often taught is quite wrong. Maybe I should post an article on my website about that, too.)Is academia failing graduates? Survey claims so
Computer science and computer engineering are undoubtedly the hardest to keep up with. By the time a new technology or method is recognized as important, and curriculum is written, and it is incorporated into the classes offered, it's already kind of old. Also, if a student can't get a job immediately out of school (or even before they're done), (s)he might fall behind awfully fast, making all the harder to get a job. (That's not to say that every job demands the latest though.)28% of respondents said their degree courses were ‘outdated’ in relation to current requirements.
http://WilsonMinesCo.com/ lots of 6502 resources
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Ard
I have been teaching electronics for a little over 10 years now and I have to say that (at least the way we do it) we are not teaching quite right.
Instead of ramming theoretical concepts into the students brains and then giving them written exams, I think it would be much better to have a more hands on practical approach and put everything they are learning into context. They will retain much more information that way, find it more relevant and have more fun!
Instead of ramming theoretical concepts into the students brains and then giving them written exams, I think it would be much better to have a more hands on practical approach and put everything they are learning into context. They will retain much more information that way, find it more relevant and have more fun!
Re: Beginning C for Arduino: Learn C Programming for the Ard
One of my beefs is that the necessary math is presented in such a theoretical and sterile way, and without application, with the idea that it must be laid as a foundation ahead of the need. How will that generate interest? How does that help the student understand what's going on in his circuit on the workbench? It won't. How about teaching the circuits and letting the students run up against problems they don't have the math tools to solve yet, then pausing the electronics work to learn what now suddenly there's an interest and application for. That's how I got through a lot of stuff, teaching myself. I kind of have to learn things my own way anyway.
There has been an EE student in India who found me through one of the forums, and he asked me a bazillion questions (by email) about the Fourier transform (which is used for spectrum analysis, including the phase of the various components), convolution integrals (which can be used for determining how a circuit will respond to a given AC waveform), transmission lines, and other things. I explained these things—a long string of them—but he ended up dropping out anyway. Apparently the school tried to work the students really hard (in the wrong way) to produce top-notch engineers, and as a result, the students were just barely hanging on by their fingernails and didn't learn as much as they would have learned if they had time to absorb the material and bring it down to earth. The creme will always rise to the top of course; but the creme would probably reach the top sooner with a different kind of help.
Similarly, we know two medical doctors, a husband and wife, who also got degrees in mechanical engineering because of their interest in prostheses. As we were discussing this kind of thing around the pool, one of them admitted (and the other concurred), "I went through my transforms classes and got my A's; but I still have to admit that I don't really know what the Fourier transform does." It felt strange explaining this kind of thing to them, when I was the one without formal education.
That's not to say I'm super strong in math. I'm definitely not, and there's a lot on the MoHPC calculator forum that I don't understand as presented by all these lofty mathematicians. I can usually find a way to brute-force something if necessary to get answers though, sometimes similar to using Simpson's approximation of an integral, writing a computer program to slice something up into slivers in time or whatever's on your X axis, or doing iterative processes to converge on answers like in a feedback system.
There has been an EE student in India who found me through one of the forums, and he asked me a bazillion questions (by email) about the Fourier transform (which is used for spectrum analysis, including the phase of the various components), convolution integrals (which can be used for determining how a circuit will respond to a given AC waveform), transmission lines, and other things. I explained these things—a long string of them—but he ended up dropping out anyway. Apparently the school tried to work the students really hard (in the wrong way) to produce top-notch engineers, and as a result, the students were just barely hanging on by their fingernails and didn't learn as much as they would have learned if they had time to absorb the material and bring it down to earth. The creme will always rise to the top of course; but the creme would probably reach the top sooner with a different kind of help.
Similarly, we know two medical doctors, a husband and wife, who also got degrees in mechanical engineering because of their interest in prostheses. As we were discussing this kind of thing around the pool, one of them admitted (and the other concurred), "I went through my transforms classes and got my A's; but I still have to admit that I don't really know what the Fourier transform does." It felt strange explaining this kind of thing to them, when I was the one without formal education.
That's not to say I'm super strong in math. I'm definitely not, and there's a lot on the MoHPC calculator forum that I don't understand as presented by all these lofty mathematicians. I can usually find a way to brute-force something if necessary to get answers though, sometimes similar to using Simpson's approximation of an integral, writing a computer program to slice something up into slivers in time or whatever's on your X axis, or doing iterative processes to converge on answers like in a feedback system.
http://WilsonMinesCo.com/ lots of 6502 resources
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Ard
You're exactly right Garth. I have found it works very well when starting with a new class - to show them completed electronic projects first, get them to play with them and experiment and then start to bring in some concepts from there. From the very beginning they have some sort of context for what they are about to learn.
Re: Beginning C for Arduino: Learn C Programming for the Ard
Done. http://wilsonminesco.com/HowWriteResume.htmlGarth wrote:It was a constant frustration for me in the years when I was hiring technicians and engineers. (I probably read over a thousand resumes, and I thought it would be fun to be a guest speaker in a classroom to tell how to write a resume. Some of what's often taught is quite wrong. Maybe I should post an article on my website about that, too.)
http://WilsonMinesCo.com/ lots of 6502 resources
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Arduino
Nicely done Garth
Re: Beginning C for Arduino: Learn C Programming for the Ard
The following true story about a job interview I had in 1985 is rather off-topic except that it's related to the resume, so I'll put it here for your entertainment.Garth wrote: ↑Mon Jun 12, 2017 2:11 pmDone. http://wilsonminesco.com/HowWriteResume.htmlGarth wrote:It was a constant frustration for me in the years when I was hiring technicians and engineers. (I probably read over a thousand resumes, and I thought it would be fun to be a guest speaker in a classroom to tell how to write a resume. Some of what's often taught is quite wrong. Maybe I should post an article on my website about that, too.)
I had an appointment for an interview with the president or other high-ranking man in a small technical company. I got there on time, but he forgot he had scheduled me, and he was out. His secretary called him on the phone and asked what she should do. He apparently told her to try to interview me herself, and gave her some questions to ask me. She appeared quite nervous but was trying to act very professional. She was dressed the part, too. She took me into a conference room and we sat down at the conference table, and she was looking over my resume and her notepad, again trying to act very professional.
There was a spider crawling up her suit jacket, and I didn't know if I ought to say something. It went up over one shoulder, across the back, and came down the other shoulder, and was on her lapel, getting closer to her blouse and skin.
I finally said, "Um, I don't think you would want me to ignore this anymore, but [pointing] you have a spider..." and I was not able to get any further. Her professional efforts were instantly gone, and she jumped up, knocking the chair back, stiffened up, and screamed, "Get 'im off me!!" I quickly brushed it off her lapel. It landed on the conference table, and I slapped it, then scooped it up with a piece of paper (I didn't smash it enough to really make a mess), and took it over to the trash can and dropped it in.
That put an abrupt end to the interview. It seems like there must have been someone in the surrounding offices who must have known the boss's secretary was in the conference room alone with a man, and here comes this scream, "Get 'im off me!!" ...but no one came. I don't remember what happened after that, but I didn't get the job. I'm sure she was so embarrassed about her behavior that she never wanted to see me again in her life!
http://WilsonMinesCo.com/ lots of 6502 resources
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Beginning C for Arduino: Learn C Programming for the Arduino
Well that certainly beats any job interview that I have ever gone to. I did actually find some old documents for when I was interviewed for the airforce in 2001. The documents recommended that I should not be taken on and that I need more time to mature. The strange thing however is that I was accepted a month later!
Re: Beginning C for Arduino: Learn C Programming for the Arduino
The link went dead; so here's one that works:
MIT graduates cannot power a light bulb with a battery.
https://www.youtube.com/watch?v=aIhk9eKOLzQ
http://WilsonMinesCo.com/ lots of 6502 resources
Who is online
Users browsing this forum: No registered users and 2 guests