• Electronics and Embedded Programming
    3,297 replies, posted
  • Avatar of Zero-Point
  • [QUOTE=turby;19890593]I really want to get an Arduino, but I'm not too good (I'm alright, but I only know the basics) at electronics. The embedded programming part really interests me though. Should I?[/QUOTE] For most projects, the Arduino should take care of the more difficult stuff (unless your circuit requires supporting logic circuits), and require just a few discrete components for support. (and to make sure you don't burn-out your Arduino)
  • The only basic functions you need to know are digitalRead, digitalWrite and pinMode. You also need to remember the void setup and void loop. Pretty basic.
  • Avatar of kobilica
  • I use AVR micros too, but I code them in C. I made software PWM already in C, and so on. Some basic stuff anyway.
  • Avatar of DrLuke
  • [QUOTE=kobilica;19896741]I use AVR micros too, but I code them in C. I made software PWM already in C, and so on. Some basic stuff anyway.[/QUOTE] You have my respect. I tried it, but it's way more complicated than Arduino :(
  • Avatar of DrLuke
  • I opened some old camera to extract the flash, and I found the motherload: 330V 160 uF cap. Enough to die from. Also I found out how to trigger the flash, so it'll be most definately be built in into my friend's any mine model-rocket for night-operations, used as a flashin beacon.
  • Avatar of TheBoff
  • [QUOTE=DrLuke;19924043]I opened some old camera to extract the flash, and I found the motherload: 330V 160 uF cap. Enough to die from. Also I found out how to trigger the flash, so it'll be most definately be built in into my friend's any mine model-rocket for night-operations, used as a flashin beacon.[/QUOTE] I doubt there's enough current to kill you, but It's fun short circuiting those with a thin bit of wire, and watching the wire pop.
  • Nooooooo DrLuke whyyy!!! [/sarcasm] Found some cool parts in a old electronic box. Going to make some cool stuff with it :D.
  • Avatar of TrueNash
  • Sweet! What parts? Got mine a couple of days ago, haven't had time to do anything but mess around with LEDs so far, but when I do, theres a box of old RC planes, cars and helicopters in my garage that are getting the chop.
  • Avatar of turby
  • If I get one, I'll order one of those LCD text screens, see if I can find a keyboard with an easy interface and make a command line :)
  • Can you do anything usefull with a LCD screen from a mobile phone? Also, trying to make a voltage increaser with some caps to fry some resistors.
  • Avatar of Borsty
  • This might not be arduino related but I also worked with some avr's some time ago. Some stuff: VU display on a b/w lcd (Video sync broke when youtube decided to go hd) [media]http://www.youtube.com/watch?v=CGrBxH7qL94[/media] @ddrl46 yes you can do useful stuff with mobile phone lcds I once wrote a small rs232 (serial connection) to lcd thing so I could write to the screen easily from another controller: [media]http://www.youtube.com/watch?v=-lzhdzzPxKI[/media] Also calculating mandelbrot sets on an 8 bit processor ftw [media]http://www.youtube.com/watch?v=YDg9dXon1LA[/media]
  • Avatar of TrueNash
  • I found my old GBA and got excited about the screen, but apparently it's not possible to do anything with it *sad face*
  • [url]http://hackaday.com/2008/11/19/how-to-the-bus-pirate-universal-serial-interface/[/url] Maybe this would work with the screen?
  • Avatar of TheBoff
  • [QUOTE=Borsty;19932479]This might not be arduino related but I also worked with some avr's some time ago. Some stuff: VU display on a b/w lcd (Video sync broke when youtube decided to go hd) [media]http://www.youtube.com/watch?v=CGrBxH7qL94[/media] @ddrl46 yes you can do useful stuff with mobile phone lcds I once wrote a small rs232 (serial connection) to lcd thing so I could write to the screen easily from another controller: [media]http://www.youtube.com/watch?v=-lzhdzzPxKI[/media] Also calculating mandelbrot sets on an 8 bit processor ftw [media]http://www.youtube.com/watch?v=YDg9dXon1LA[/media][/QUOTE] How did you write the screen control library? I've got honestly no idea where you'd start - did you manage to find a manual after getting it off the phone, or something? I'm really impressed by that!
  • Avatar of Borsty
  • Yep, found a technical manual for the display used by the siemens s65, made the voltage pump for the background light and wrote a small lib for the avr (needs SPI interface) which contains all of the commands.. pretty straight forward. And I bought the screen on ebay for like 10€ back then :P If I remember correctly the only commands I used was to setup the orientation, the start and end coordinate and then wrote the 16bit color data to it, all the text rendering, lines etc were custom.
  • Avatar of DrLuke
  • [media]http://www.youtube.com/watch?v=0qLcatxf9bU[/media] This is me trying out a piezo-sensor. Sketch: [code] int read0; void setup() { } void loop() { read0 = analogRead(0); analogWrite(11, read0); } [/code]
  • Avatar of Zero-Point
  • [QUOTE=ddrl46;19931695]Nooooooo DrLuke whyyy!!! [/sarcasm] Found some cool parts in a old electronic box. Going to make some cool stuff with it :D.[/QUOTE] Electronic boxes are treasure chests of wonder and mystery! :D
  • Avatar of Little Green
  • This looks like something I'd enjoy a lot! I'm keen to get into this but just have a few questions if anybody could help :) Is it worthwhile getting the mega? I seriously doubt I'd need the extra pins but I'm not sure how complex a program can be before you start having issues with the Duemilanove. I'm leaning towards the Duemilanove, but if it's worth the extra $10 - $20 I could be persuaded to buy the mega. Is the protoshield + mini breadboard a useful thing to have? The starter kit I'm looking at on ebay doesn't have it, just a separate breadboard. I'm assuming you'll have no problems doing the same things without the protoshield, but it'd just be more convenient and tidy. (here's the link if anybody could tell me whether it's a decent buy [url]http://cgi.ebay.com.au/ARDUINO-2009-Duemilanove-ATMEGA328P-Starter-Kit-Pack_W0QQitemZ130359936722QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item1e5a0ec6d2[/url]) The other option is to just buy the board and perhaps protoshield and forget about the kit - just buy components as they're needed. Basically I just need a few pointers before I go ahead and buy one.
  • 1. If you are going to do huge projects that need much pins, or going to connect 2 lcds to it, then yes. 2. It's usefull because it gives you more 5V and GND connections. The starterpack at Adafruit has a breadboard to stick on top. 3. ? 4. Adafruit [editline]06:18PM[/editline] We also got a arduino group, join us! [url]http://steamcommunity.com/groups/Arduino[/url]
  • Avatar of TheBoff
  • You will absolutely need a breadboard and wire kit of some description, Little Green, unless you don't want to do anything more complex than blink an LED.
  • Avatar of DrLuke
  • An arduino Duemilanove is enough to start with. Get a duemilaonve first. Holy moly, 2 color LED! [media]http://www.youtube.com/watch?v=zyaHWCqGhM8[/media] The finding of this LED really surprised me (found it in an old CD-Rom drive as I was about to throw it away). After a few tests I got the idea of writing a small sketch that randomly fades it into different colors. Sketch: [code] int grold = 0; int reold = 0; int cycles; int grdif; int redif; int grdif1; int redif1; int green; int red; void setup() { } void pulse(int gr, int re, int del) { gr = constrain(gr, 0, 254); re = constrain(re, 0, 254); grdif1 = gr - grold; grdif = abs(grdif1); redif1 = re - reold; redif = abs(redif1); cycles = max(grdif, redif); for(int forv = 0; forv < cycles; forv++) { if(grdif1 > 0) { if(green != gr) { analogWrite(10, green++); } } if(grdif1 < 0) { if(green != gr) { analogWrite(10, green--); } } if(redif1 > 0) { if(red != re) { analogWrite(9, red++); } } if(redif1 < 0) { if(red != re) { analogWrite(9, red--); } } delay(del); } grold = gr; reold = re; } void loop() { pulse(random(0,254), random(0, 150), 3); delay(3); } [/code]
  • Avatar of Elspin
  • Update of the program I'm working on. [media]http://www.youtube.com/watch?v=Cro6ReHVvic[/media]