Pages: 1 ... 6 7 [8] 9 10 ... 43   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 112889 times)
0 Members and 1 Guest are viewing this topic.
Antwerp, Belgium
Offline Offline
Jr. Member
**
Karma: 2
Posts: 61
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Tim: How does A*.app 1.0 seem to have changed from 022?

Those are documented in http://arduino.cc/en/Main/ReleaseNotes

Quote
- * The WProgram.h file, which provides declarations for the Arduino API,
  has been renamed to Arduino.h. To create a library that will work in
  both Arduino 0022 and Arduino 1.0, you can use an #ifdef that checks
  for the ARDUINO constant, which was 22 and is now 100.  For example:

  #if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
  #else
  #include "WProgram.h"
  #endif

- The avrdude included with the Mac and Windows versions of the Arduino
  software has been upgraded to avrdude 5.11 (from an Arduino-specific
  version of avrdude 5.4). The software now uses the "arduino" programmer
  type in place of "stk500v1" for uploading to most Arduino boards.

etc..

good luck with that!

best,
tim.
Logged

France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Haakon (is that your first name?),

Please consider the Reference.txt file at https://github.com/rei-vilo/mpideOnXCode42. I tried and listed all the documents I've read so far.

Some of the technical details are in the issues in the timknapen / Arduino-With-XCode repository: please refer to  https://github.com/timknapen/Arduino-With-XCode/issues

I strongly recommend having a look at Christopher Peplin's repository arduino.mk at https://github.com/peplin/arduino.mk. The makefile embrace both Arduino and chipKIT.

The Arduino part works fine and features a dedicated folder for OBJ files. I'm currently testing the chipKIT part and face two issues I've already reported.

Downloading MPIDE and playing with it are just one click away: https://github.com/chipKIT32/chipKIT32-MAX/downloads

Another section to add to the website is the list of features required, with a points-based system of vote, pretty much like the http://getsatisfaction.com implementation. Each registered user has —let' say— 6 points and can allow up to 3 points per feature. Once the feature is delivered, the user recover his/hers points.

It would be nice to link the number of points one user can handle with his/hers active participation on the project.
« Last Edit: January 25, 2012, 08:51:03 am by avenue33 » Logged


France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@All,

I've just changed the thread name from

  • UPDATE - Linker Problem — Arduino Uno and Xcode (cont'd) )

to

  • Arduino on Xcode Project — Official Thread

in order to make everything clearer for everyone smiley.
« Last Edit: January 25, 2012, 09:01:29 am by avenue33 » Logged


Antwerp, Belgium
Offline Offline
Jr. Member
**
Karma: 2
Posts: 61
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

  • Arduino on Xcode Project — Official Thread

haha aw yeah!
Logged

Antwerp, Belgium
Offline Offline
Jr. Member
**
Karma: 2
Posts: 61
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If it isn't too much hassle, I know that myself and many with me would appreciate a lot if
you could do a write-up of what you have learned so far about how this Xcode+Arduino.app setup
works. I'm thinking about a sequential description of how you understand everything runs from
the point to click Build&Upload, what happens with the makefile, documentation about the makefile
and other important knowledge like customizing code completion, syntax coloring et al.
Absolutely agree with that, when I get some time, I will try to do a nice write-up.
Maybe after we finnish integrating Arduino.app 1.0 ?

Quote
Maybe it's an idea to hack a quick Cocoa app or script that handles/starts the serial monitor automatically
for the user?
I have that app lying around here on my computer.. but I'm not sure I am convinced this should be part of the XCode project...
This is just my personal opinion, but I think this should be as general as possible and the least bloated possible. More stuffss == more places where things can break. People can always fork from the project to add extra special personal preferences to it..
I'm not sure I am right on this one... is serial communication essential in this project? Should it be from XCode? I feel not. What do you guys think?

Quote
I've also ordered the WiFly wifi shield from Sparkfun.com so my arduino can speak tcp/ip
with the world. Do you guys have any experience with this, or have any other wifi shield
to reccommend?
There must be some people on this forum that have worked with those things, but that might be another thread...  smiley-wink
Logged

France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Maybe it's an idea to hack a quick Cocoa app or script that handles/starts the serial monitor automatically
for the user?
I have that app lying around here on my computer.. but I'm not sure I am convinced this should be part of the XCode project...
This is just my personal opinion, but I think this should be as general as possible and the least bloated possible. More stuffss == more places where things can break. People can always fork from the project to add extra special personal preferences to it..
I'm not sure I am right on this one... is serial communication essential in this project? Should it be from XCode? I feel not. What do you guys think?
I use the serial connection very often as a mean to debug my applications.

So I would greatly appreciate an easy way to have a serial console with a smart management of the USB port to avoid any conflict between the serial console and the upload of the code.

For normal and interactive use, I prefer CooTerm (free).

The error message I receive so far is
Quote
screen /dev/tty.usbmodem641 -b19200
Must be connected to a terminal.
It seems to be a rather basic error but I don't know OS X intricacies feel enough to fix it!

I've also ordered the WiFly wifi shield from Sparkfun.com so my arduino can speak tcp/ip
with the world. Do you guys have any experience with this, or have any other wifi shield to reccommend?
I bought the XBee Explorer Regulated board from Sparkfun (WRL-09132) but it has a major flaw: the diode D1 prevents data going to DIN. I put a 10 kΩ resistor instead.

First app was to read time from a NTP server a set the internal clock of my chipKIT UNO32 board.

Everything is here! Enjoy smiley
Logged


Antwerp, Belgium
Offline Offline
Jr. Member
**
Karma: 2
Posts: 61
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey Olivier,

try this in your makefile for opening a serial terminal from XCode:

Code:
serial:
@echo " ---- open serial ---- "
osascript -e 'tell application "Terminal" to do script "screen /dev/tty.usbmodem* 9600"'

killserial:
@echo " ---- close serial ---- "
osascript -e 'tell application "Terminal" to do script "screen -X quit"'

You can then add these rules after and before your upload if you want.
« Last Edit: January 25, 2012, 11:28:04 am by timKnapen » Logged

France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Tim, it works great!
For better interaction, I'll use CoolTerm.

One caveat, however: the \n management

How to convert a \n into \r\n?


* console.png (29.91 KB, 570x366 - viewed 94 times.)
« Last Edit: January 25, 2012, 12:58:58 pm by avenue33 » Logged


France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Latest timknapen-Arduino-With-XCode-3dec20f commit includes a nice feature:

• on main.cpp, change
Code:
#include "ArduinoProgram.h"
for
Code:
#include "ArduinoProgram.pde"
• delete ArduinoProgram.h
• rename ArduinoProgram.cpp to ArduinoProgram.pde

On Xcode 4.2 right-most pane Utility, under Identity and Type, select File Type to C++ source instead of Default Plain Text.

Everything runs fine, including code sense smiley

The \n bug remains: I guess it is just a parameter to set for the console.
Logged


Oslo
Offline Offline
Newbie
*
Karma: 0
Posts: 10
OSX/xCode4.2/Arduino/iOS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Work has started on Xcodeuino.com - will keep you posted. Took longer than excepted.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've also ordered the WiFly wifi shield from Sparkfun.com so my arduino can speak tcp/ip
with the world. Do you guys have any experience with this, or have any other wifi shield
to reccommend?

I've been using the RN-171 from Roving Networks and just set it up to post to a PHP server every minute without interaction from the host controller. This way, you can power down everything except the WiFi module, it will read sensor data and post to a web server as the frequency you wish. I posted on the Roving FAQ at http://rovingnetworks.com/FAQs/Standalone_WiFi_modules_sending_data_to_web
Logged

France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry Phooto, I'm afraid this is not the right thread for RN-171 related issues.

Please join or create the appropriate thread.

Thank you.
Logged


Oslo
Offline Offline
Newbie
*
Karma: 0
Posts: 10
OSX/xCode4.2/Arduino/iOS
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, the skeleton of http://xcodeuino.com is live.
All interested parties are called to register!
I'm not a web developer by trade, and this is my first Drupal site. Bear with me :-)
Logged

France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Congratulations for the launch.

Is there a specific thread on the forum for suggestions?
Logged


France
Offline Offline
God Member
*****
Karma: 9
Posts: 615
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Discover what Xcode can do for Arduino / chipKIT!

Logged


Pages: 1 ... 6 7 [8] 9 10 ... 43   Go Up
Jump to: