Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 154 times) previous topic - next topic

timKnapen


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.

avenue33

#106
Jan 25, 2012, 02:42 pm Last Edit: Jan 25, 2012, 02:51 pm by avenue33 Reason: 1
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.

avenue33

#107
Jan 25, 2012, 02:56 pm Last Edit: Jan 25, 2012, 03:01 pm by avenue33 Reason: 1
@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 :).

timKnapen


timKnapen


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...  ;)

avenue33


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 :)

timKnapen

#111
Jan 25, 2012, 05:25 pm Last Edit: Jan 25, 2012, 05:28 pm by timKnapen Reason: 1
Hey Olivier,

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

Code: [Select]
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.

avenue33

#112
Jan 25, 2012, 06:53 pm Last Edit: Jan 25, 2012, 06:58 pm by avenue33 Reason: 1
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?

avenue33

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

• on main.cpp, change
Code: [Select]
#include "ArduinoProgram.h" for
Code: [Select]
#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 :)

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

HaakonStorm

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

Phooto


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

avenue33

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.

HaakonStorm

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 :-)

avenue33

Congratulations for the launch.

Is there a specific thread on the forum for suggestions?

avenue33


Go Up