caramoan tour package

caramoan tour package

Author Topic: arduino tutorial here!! :D  (Read 1282 times)

Offline LTSGü

  • Size C Battery
  • *****
  • Posts: 193
  • Pogi/Ganda Points: 10
  • Gender: Male
  • ~two things in life: RIGHT and WRONG~
arduino tutorial here!! :D
« on: March 07, 2011, 02:53:50 AM »
hindi pa ako nakakagamit ng arduino... nakita ko lang to... and dumadami na ang mga nagkakaron ng interest dito.. so eto.. napulot ko lang somewhere :D

http://tronixstuff.wordpress.com/tutorials/



Extremely Cute Engineer

~Craving for Knowledge~

Philippine Electronics Forum

arduino tutorial here!! :D
« on: March 07, 2011, 02:53:50 AM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: arduino tutorial here!! :D
« Reply #1 on: March 07, 2011, 11:52:24 AM »
actually, way before ma-introduce siya dito sa Pinas, Arduino na 'yung widely used abroad ng mga hobbyists, especially 'yung walang Programming background like Musicians, Artists, etc. mas popular lang sa atin dito ang PIC dahil 'yun 'yung madaling kunan ng supply. ;D
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: arduino tutorial here!! :D
« Reply #1 on: March 07, 2011, 11:52:24 AM »

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: arduino tutorial here!! :D
« Reply #2 on: March 07, 2011, 03:00:53 PM »
OT:

i need to program a couple of ATMega8L...anu ba ma recommend nyo na DIY programmer for 1st timer...:D

Philippine Electronics Forum

Re: arduino tutorial here!! :D
« Reply #2 on: March 07, 2011, 03:00:53 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3033
  • Pogi/Ganda Points: 208
Re: arduino tutorial here!! :D
« Reply #3 on: March 07, 2011, 03:44:01 PM »
parallel programmer  ... ilang resistors lang ang katapat niyan, supported pa under the arduino ide.

Philippine Electronics Forum

Re: arduino tutorial here!! :D
« Reply #3 on: March 07, 2011, 03:44:01 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3033
  • Pogi/Ganda Points: 208
Re: arduino tutorial here!! :D
« Reply #4 on: March 07, 2011, 03:52:02 PM »
Unless i can get my hands on some atmega328, ayoko na sa arduino  .... sobrang lakas kumain ng rom at ram  :P :P :( :( ;D ;D.

Hindi kaya sa isang atmega8 pagsabayin ang lcd display, serial communication at i2c.

Actually, even sa native c (avr-gcc), ang observation ko, medyo mas malakas pa rin kumain ng ram at rom ang avrs compared sa mga pic, ewan ko lang sa mga commercial compilers kung ganun din.  Comparison is made porting the same code made in hitech c to avr-gcc.

Philippine Electronics Forum

Re: arduino tutorial here!! :D
« Reply #4 on: March 07, 2011, 03:52:02 PM »

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: arduino tutorial here!! :D
« Reply #5 on: March 07, 2011, 03:52:02 PM »
meron ako nyan..yung via MOSI/MISO ba? kahit walang R pwede yun...kaso laptop gamit ko..:(

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: arduino tutorial here!! :D
« Reply #6 on: March 07, 2011, 04:16:25 PM »
Gusto ko rin magstart sa arduino pero programmer din problema ko.

Offline LTSGü

  • Size C Battery
  • *****
  • Posts: 193
  • Pogi/Ganda Points: 10
  • Gender: Male
  • ~two things in life: RIGHT and WRONG~
Re: arduino tutorial here!! :D
« Reply #7 on: March 07, 2011, 04:28:59 PM »
honga.. schem naman jan yung tipong less than 200 petot din.. :D
Extremely Cute Engineer

~Craving for Knowledge~

Offline Ikasamoko

  • Solar Power Satellite
  • *****
  • Posts: 5724
  • Pogi/Ganda Points: 414
  • Gender: Male
  • ..sexually deficit..
    • My "BLAG!"
Re: arduino tutorial here!! :D
« Reply #8 on: March 07, 2011, 04:32:06 PM »
so far here's one which is next to nothing..



kaso wala ako desktop pc..:(


BTW this might interest you too...

http://openprog.altervista.org/OP_eng.html#SchematicD

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3033
  • Pogi/Ganda Points: 208
Re: arduino tutorial here!! :D
« Reply #9 on: March 07, 2011, 04:33:42 PM »
Kung may pickit2 kayo, you can burn your initial atmega8 bootloaded chip using pickit2avrisp.  Tried and tested ko sa atmega8l.

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: arduino tutorial here!! :D
« Reply #10 on: March 07, 2011, 05:57:33 PM »
Unless i can get my hands on some atmega328, ayoko na sa arduino  .... sobrang lakas kumain ng rom at ram  :P :P :( :( ;D ;D.

Hindi kaya sa isang atmega8 pagsabayin ang lcd display, serial communication at i2c.

Actually, even sa native c (avr-gcc), ang observation ko, medyo mas malakas pa rin kumain ng ram at rom ang avrs compared sa mga pic, ewan ko lang sa mga commercial compilers kung ganun din.  Comparison is made porting the same code made in hitech c to avr-gcc.

anong optimizations gamit niyo sir? with LCD, SPI, UART, Division Modules (automatically added sa dulo ng code kapag merong Modulo or Division sa code), Lookup Tables, nasa 3k lang 'yung code ko (around 700 lines excluding comments), and around 30 bytes RAM (though wala akong buffers na gamit, mostly static function variables and global variables lang). I'm using ATMega88 or ATMega8 most of the times. sa smaller projects, ATTiny13.

the original assembly instructions were built for direct conversion from C language, AFAIR, IAR 'yung talagang kasama nila sa development.

madalas nga palang malaki ang code sir kapag merong rine-return na value 'yung mga functions. either gumamit na lang ng pointers sa ire-return, direct na i-manipulate 'yung registers, o gumamit na lang ng global variables.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3033
  • Pogi/Ganda Points: 208
Re: arduino tutorial here!! :D
« Reply #11 on: March 07, 2011, 07:40:47 PM »
^ bro I was referring to arduino on atmega8.  The bootloader is already 1KB so I'm left with 7KB for code.  Core arduino codes, mga 1.5KB agad para sa ordinaryomg blink program.  When I add serial uart, lcd and twi,  sumobra na agad sa allowable 7K yung code.

In terms of c on avr and c on pic, my code on hitech c which is 3KB and around 140 RAM bytes, pagdating sa port on avr-gcc is around 5K with around 250 bytes RAM.  Using default optimization of Os sa avr-gcc. Masubukan nga sa IAR kung mas payat ang code.


Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: arduino tutorial here!! :D
« Reply #12 on: March 07, 2011, 07:59:32 PM »
magastos talaga 'yung Arduino kaya 'di ko ginagamit. :D though pwedeng i-strip down 'yun by modifying the linker options and reducing other allocated buffers. AFAIR, merong Advance Arduino Guide para dito. AFAIR, nasa 128 bytes RAM na kaagad 'yung allocated sa UART with or without using it.

meron bang mga unused functions doon sa program niyo sir? meron ding ibang optimizations that was applicable to PIC na 'di pwede sa AVR kaya mas malaking code 'yung magagawa, isa na 'yung sa Bit data type.

this is TI's Benchmark, using IAR compiler, PIC generated 1.8 times more code than AVR:

http://www.gaw.ru/pdf/TI/app/msp430/slaa205a.pdf

most probably, it boils down to Hitech's built-in optimizations for the PIC.

eto naman 'yung guide ng AVR to compare kung same sa Hitech-C guide on efficient coding (matagal na ako 'di nakagamit ng PIC):

http://www.atmel.com/dyn/resources/prod_documents/doc1497.pdf
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: arduino tutorial here!! :D
« Reply #12 on: March 07, 2011, 07:59:32 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com