Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 23
61  Using Arduino / Programming Questions / Re: where to find the Arduino source on: July 09, 2013, 09:08:58 am
good stuff guys .

Thanks.
62  Using Arduino / Programming Questions / where to find the Arduino source on: July 09, 2013, 08:47:30 am
I want to look into the source to find the code behind all the functions

for example i want to see how they accessed the ports with pinMode and analogRead etc....DDR..PORT...
and not just that , i want to look into many other things

I have looked into https://github.com/arduino/Arduino but i dont even know where to look with all those different files.


63  Using Arduino / Programming Questions / Re: Tutorials for programing my Arduino in raw C on: July 07, 2013, 10:55:49 pm
if you like video instruction here are some good youtube channels on using AVR chips with Atmels Studio 6
which is what i have personally been doing my self just trying to broaden knowledge into AVR microcontrollers in general as oppose to strictly Arduino


 
Patrick Hood playlist INtro to Avr MicroControllers


Human HardDrive  Human HardDrive - INtro to Avr - C - programming


Ive learned a bit from both these guys , make sure to brush up on your bit shifting and operations or just write a good macro to keep it simple
and get the chips datasheet , set is as your desktop background hahhaa youll learn the pinout in no time.
Also get a programmer , i use tinyISP but its requires some work to get it all working with Atmel studio.
If you get a supported programmer like MkII (MK2) then it is supported off the bat.

Enjoy. its rather fun and the Atmel Studio is based on VIsual Studio which is pretty neat. in my opinion of course

if you want example code search perhaps AVR Freaks
64  Using Arduino / Programming Questions / Re: deactivate a specific pin in C on: July 05, 2013, 12:24:04 am
Code:
digitalWrite (4, ! digitalRead (4));

Did you mean D4?

im uisng an arduino but not the Arduino IDE , basically im trying to learn to program the chip or any atmel chip
with their atmel studio...maybe im in the wrong forum :/ nonetheless you guys are plenty of help....

i updated my post because i did indeed figure it out
its hard to program using bits and hex and binary just off the top of your head  i dont know how people can do this without glancing at a chart or something
and think for ten minutes before every single line
65  Using Arduino / Programming Questions / deactivate a specific pin in C on: July 04, 2013, 11:56:22 pm
let me start by saying i know my way around arduino a bit
as well as its wiring language
but in plain old C is something new to me


now my question is, is it possible to flash pin 4 (0x20) on and off
without affecting pin 5 , but!!! without having to resort to bitmath/masks etc...

and if i do have to use a bitmask does it always require an if statement..?

Code:
#define F_CPU 20000000L
#include <avr/io.h>
#include <util/delay.h>

int main(void)
{

DDRB = 0x30; // portB pins 5 and 4 set to output
PORTB = 0x20; //sets only pin 5 high



        while(1)
        {

        }


}


**update i just figured it out....

Code:
#define F_CPU 20000000L 
#include <avr/io.h>
#include <util/delay.h>

int main(void)
{

DDRB = 0x30; // portB pins 5 and 4 set to output
PORTB = 0x20; //sets only pin 5 high



        while(1)
        {
PORTB  = (0x30 | 0x10 ); // bitwise an or mask
_delay_ms(50);
PORTB = (0x30 & ~0x10); //an "and" and "not" mask
_delay_ms(50);
        }


}


66  Using Arduino / Programming Questions / how many different ways to set a pin on: July 03, 2013, 11:06:34 pm
a while back when i was much more active here there was a post on how many different ways there are to set a pin

pinMode(pin1 , OUTPUT)

DDRB PORTB. and on and on and on... i was just wondering if anyone of the senoir members remembers where that post is...im talking about a year and half ago..I have tried search but my criteria is not turning out much ...


would this work  in the arduino enviroment? im ucrrently using atmel studio with a usbtiny isp

Code:

DDRB |= (1 << PINB5 );
PORTB &= ~(1 << PINB5);
while(1)
{
       
         PORTB ^= (1 << PINB5);
delay_ms(5000);


 }
67  Using Arduino / General Electronics / Re: Building up the workBench..your fave tools? on: June 28, 2013, 12:50:55 am
Code:
If you are working with digital logic (ie. microprocessors) then I use my Logic analyzer a lot lot more than my oscilloscope:
I took this advice and got the 16 channel model. 
This has proven to be a very useful tool and I second the suggestion.  I do wish the software had an option to print the screen with a white rather than the black background.  This would save on ink!

I have found a logic probe is a useful tool.   You can find DIY circuits on the WEB.

You can just throw it into paint or some imaging software and invert the colors.
I will look into the Logic Analyzers as well as the mentioned meters,
Thanks Guys
68  Using Arduino / General Electronics / Building up the workBench..your fave tools? on: June 26, 2013, 12:37:01 am
So i use to be a bit active  in this forum , then i got married :/
now im back trying to build up a new tool set , however with all the brandnames and knockoffs
i dont know which are actually the good ones...

for example trying to purchase a new Multimeter but do i get the 40$ one or the 161$ one or am i just paying for a brand name
as oppose to actual functionality


also whats a good entry - mid level oscilloscope

good soldering /hotair reflow station i currently have an ebay one that cost like 200 havent used it in ages ill turn it on sometime tomorrow to make sure it works fine.

so yeah main querstion is what brands are known to be good for such tools?
69  Community / Bar Sport / Re: Jeeze ive been gone a year and.... on: December 16, 2012, 10:06:56 pm
sweet where at ? moroso?   wait what part of fl are you in?
70  Community / Bar Sport / Re: Jeeze ive been gone a year and.... on: December 14, 2012, 10:33:22 am
tell me about it , I have always wanted to do some sort of collab or group project or at least have someone with enough knowledge to hold a decent conversation on the subject with...but no avail .....

If its not beach or motorcycle related florida has no clue about it.

speaking of I just sold my bike and built a new (AMD)  desktop and purchased a new 3d tv..that's my present to my self.
71  Community / Bar Sport / Jeeze ive been gone a year and.... on: December 13, 2012, 11:57:21 pm
so many new things..new members....boards and chips...don't know where to start to soak it all in...I assume the ide is new as well so I think I will start with that...

72  Using Arduino / General Electronics / Re: Dont understand the meaning of series circuit on: November 09, 2011, 04:21:42 pm
yeah i got the picture , its like all the components are one big resistor in which case the current through one resistor can only be one.
73  Using Arduino / General Electronics / Dont understand the meaning of series circuit on: November 08, 2011, 08:13:56 pm
They are teaching me that in a seires circuit the current through each component is the same but that makes no sense to me.

If my power source can only source 200ma and  i hook up 10 LEDs each operating at , just for argument sake , 100mA , then I will not light more then 2 right?


And the picture below is a series circuit with CURRENT LIMITING RESISTORS , so does a resistor not LIMIT current hence the current after the resistor will be less? Like 240ohm resistor before an led so it doesnt ruin it...
I just dont understand how they can say the current is the same :/
74  Using Arduino / General Electronics / Re: what type of chips are these? on: November 06, 2011, 10:59:42 pm
yeah sounds like i'd burn  a few before getting it right, hopefully i dont ever need something that only comes in this package at least anytime soon. I opened a cell phone and most of what i saw where these babies thats why i asked
75  Using Arduino / General Electronics / what type of chips are these? on: November 06, 2011, 10:35:13 pm
Ive been wondering what these type of chips are?
and how do they go mounted on a pcb? since there are no pins..i am guessing they are not DIY friendly  and the name of such package type?
Pages: 1 ... 3 4 [5] 6 7 ... 23