Show Posts
Pages: 1 2 3 [4] 5 6 ... 490
46  Using Arduino / Project Guidance / Re: Arduino with processing (which card ?) on: April 04, 2014, 01:00:44 pm
Are you using pin 52 on MEGA 2560? It's located on the far right with a bunch of other pins, not on the mail arduino header.
47  Using Arduino / Installation & Troubleshooting / [Tutorial] Install Arduino on windows 8 on: April 04, 2014, 12:58:53 pm
I recently acquired win 8 laptop and tablet. Encountered some problems installing Arduino on both and figured them both out. So here is a short tutorial with links to other tutorials:

http://liudr.wordpress.com/2014/04/04/install-arduino-on-windows-8/
48  Using Arduino / Project Guidance / Re: show motor speed , distance it has travelled on laptop screen wirelessly on: April 04, 2014, 01:11:47 am
How did you come by this idea yet with so little details to disclose? Did you get it from a professor?
49  Using Arduino / Project Guidance / Re: show motor speed , distance it has travelled on laptop screen wirelessly on: April 03, 2014, 08:37:44 pm
If you just want to know whether it is possible, yes. If you want help doing it, what have you done?
50  Using Arduino / Project Guidance / Re: newb in need of assistence. on: April 03, 2014, 08:36:33 pm
Use code tag.

Tell us what chapter did with serial. I dont have your book.
51  Using Arduino / Programming Questions / Re: newb in need of assistence. on: April 03, 2014, 08:34:22 pm
Do not repost! You only posted the same thing two hours ago.
52  Development / Other Software Development / Re: Opinion against Arduino platform and some way to improve on: April 02, 2014, 01:30:48 pm
Terry,

Yes, I mean a bit lower-level knowledge. The main blame from the other side is no low-level access or knowledge, which is of course false. But to make lower-level knowledge more accessible to someone that has already done some arduino project is important for arduino to enter into education territory of electrical engineering. It is currently one of the weakest links. Classic ECE education is upside down. If you don't finish the first X years, you never get to enjoy a single bit of fun using your learned knowledge. Arduino can lead a curious mind towards ECE already, flipping the upside down structure. The next step is to smooth the gap between arduino and 2XX to 3XX level microcontroller course taught in college. I'll start with some tutorial while I learn the content myself.
53  Using Arduino / Project Guidance / Re: UART communication between Arduino and Openpicus Flyport on: April 02, 2014, 12:25:17 pm
The module seems to have UART port brought to pins 14 and 15. I couldn't find a manual for this thing. The data sheet has no example on how to communicate with it. Does this module come with a manual?
54  Using Arduino / Project Guidance / Re: Smoke alarm detection on: April 02, 2014, 11:14:30 am
Interesting read. Thanks. I only knew the isotope type detector and now I know there is also optical detector.
55  Using Arduino / Project Guidance / Re: UART communication between Arduino and Openpicus Flyport on: April 02, 2014, 11:07:32 am
OP,

Please do the bare minimal decent thing as a poster next time:

http://www.openpicus.com/

Point out which link explains the wifi hardware, will you?
56  Development / Other Software Development / Opinion against Arduino platform and some way to improve on: April 02, 2014, 10:29:15 am
I raised a question in the project guidance section but solved it myself within the hour. It's about how to set TX1 pin as gpio while receiving on RX1. I figured out the register bit to reset.

http://forum.arduino.cc/index.php?topic=230319.0

This makes me think about some common arguments against Arduino, say from hackaday, from some people that prefer "bare metal". I never ever touch MCU registers. All my experience with x86 and especially 80386 architecture and registers are useless and forgotten now so why bother with AVR?! I must be considered by those people as dumbing down an AVR with Arduino because I use digitalWrite and libraries and I did hit a road block trying to use just arduino functions and languages to solve my problem.

But I did what should be done: I went in and read the HarewareSerial library code, identified approximately what commands are responsible for getting me back the gpio function of TX1, I then went and read atmel document on MEGA2560, on USART section with asm/C code example, then I understood how to set up USART "bare metal". I then went further into the document and found the name of the register (USART control status register B) and the bit (TXEN1), and reset the bit. This is exactly how I should have used arduino library code and atmel doc. I also was reminded that I/O must be mapped to SRAM address since I was reading register address (pretty low numbers). I did feel that my past life with x86 helped a tid bit but I didn't feel that arduino library and functions are preventing me from either learning or utilizing the so-called "bare metal" feature of the MCU. Instead, the library code provided me intermediate steps (of course without much comment) to reach the metal. I can see that another person, maybe a senior ECE student, only sticking to arduino libraries and functions and refusing to spend time to learn what's necessary to solve problems like the one I faced, that would be a bad example. But it's all about learning attitude. At me age, I mostly learn to solve an existing problem presented to me at work or in personal projects.

So my conclusion is: we need more instructional comments in official and contributed arduino library code to assist learning. We also need to provide learning objectives and paths to learners with the right attitude to achieve more hardware knowledge after they are comfortable with arduino environment, say with interrupts, timers, and all different registers and hardware they control. ATMEL's documents are pretty good but doesn't speak to most hobbyists. I might be able to make some video tutorials on what I learned so far, more people doing this will be quite useful as well. The arduino team can certainly host the content under learning -> advanced. Play ground is not perfect for learning.

Since arduino has made basic knowledge of MCU so easy to learn, why not making "more advanced" MCU knowledge also easy to learn and really laugh at those that thinks MCU should be difficult simply because they themselves felt it was difficult to learn in their schools.
57  Using Arduino / Project Guidance / Re: Can I use Arduino MEGA Serial1 TX as output pin while receiving on Serial1 RX? on: April 02, 2014, 10:18:41 am
Resetting the bit seems to work. After reading the atmel document, I felt a bit more confident with this method. Any confirmation this IS the correct method is still very welcome.
58  Using Arduino / Project Guidance / Re: Arduino with processing (which card ?) on: April 02, 2014, 09:59:39 am
In your pictures, your LED was blinking, so what issues do you still have? I'm willing to help. But point to your issue, like "This part should do X but it is doing Y or doing nothing".
59  Using Arduino / Project Guidance / Can I use Arduino MEGA Serial1 TX as output pin while receiving on Serial1 RX? on: April 02, 2014, 02:23:25 am
I am trying to retrofit a project with a enable pin and at the moment the least difficult way is to use pin 18 (serial1 TX) as an output pin to enable/disable a sensor output. I am using Serial1 RX to receive the sensor output so I can't just entirely remove the serial function of Serial1.

I tried to set pin 18 as output and set it to LOW. It didn't work. It must be driven by something else when it's used as TTL serial.

Then I realized that I should dig into the library code. What I found there, combined with doc2549 is that I can reset the register bit that enables the TX. This way I can use the pin again as gpio.

cbi(UCSR1B,TXEN1);

Is the above the correct way to do this?

BTW, is there any difference in value of TXEN1 and TXEN2, etc? Are they just trying to make things more general so in other MCU if the different TX enable pins are NOT the same bit location, they still work?

Thanks for reading!
60  Using Arduino / Project Guidance / Re: Arduino+XBee how to monitor the power supply on: March 31, 2014, 07:16:50 pm
OK, here is a diagram:

http://liudr.wordpress.com/?attachment_id=1809

You can sense battery voltage up to 15V.
Pages: 1 2 3 [4] 5 6 ... 490