Suggestion..... HEX files.... destination folder.....

45 views
Skip to first unread message

Francisco Igorra

unread,
Mar 21, 2016, 8:14:03 AM3/21/16
to Developers
Hi,   (my english maybe not so good)

I use the option create .hex on compilation, on preferences......

The unique thing is I can't select destination folder for .hex file. Actually is saved on a TEMP system folder.....

Can you include this option for the next release?

Now is so much hard to select this folder and copy the files again and again....

Thx so much.

Kiko

NOTE: If any people can explain this better in english, please help.

Spanish version:

Algunos usamos simuladores para arduino en programas de electrónica, los cuales requieren del fichero .hex... Este fichero, cuando se elige desde las preferencias se genera marcando compilar, pero lo guarda en una carpeta virtual, la cual genera que cada vez que lo necesitas tienes que copiar y pegar en cada modificación, y es incomodo.

¿Seria posible crear un campo para la hubicación de ese fichero? Así sería todo más fácil y no considero que sea muy complejo

Gracias.

Kiko

Cristian Maglie

unread,
Mar 21, 2016, 12:29:16 PM3/21/16
to devel...@arduino.cc

You may want to try the menu:

Sketch -> Export Compiled Binary

this command will compile your sketch and save the .hex file into your
sketch folder.

C


Il 10/03/2016 21:04, Francisco Igorra ha scritto:
> Hi, (my english maybe not so good)
>
> I use the option create .hex on compilation, on preferences......
>
> The unique thing is I can't select destination folder for .hex file.
> Actually is saved on a TEMP system folder.....
>
> Can you include this option for the next release?
>
> Now is so much hard to select this folder and copy the files again and
> again....
>
> Thx so much.
>
> Kiko
>
> NOTE: If any people can explain this better in english, please help.
>
> Spanish version:{

"name": "WiFi101",
"version": "0.9.0",
"author": "Arduino",
"maintainer": "Arduino <in...@arduino.cc>",
"sentence": "Network driver for ATMEL WINC1500 module (used on
Arduino/Genuino Wifi Shield 101 and MKR1000 boards)",
"paragraph": "This library implements a network driver for devices
based on the ATMEL WINC1500 wifi module",
"website": "http://www.arduino.cc/en/Reference/WiFi101",
"category": "Communication",
"architectures":

[

"*"

],
"types":

[
"Arduino"
],
"url":
"http://downloads.arduino.cc/libraries/arduino-libraries/WiFi101-0.9.0.zip",
"archiveFileName": "WiFi101-0.9.0.zip",
"size": ​204512,
"checksum":
"SHA-256:0f69871da3a55370e1620716316b33b58f554f9bbce1cc90aa5c4070c9f1946a"

},
>
> Algunos usamos simuladores para arduino en programas de electrónica, los
> cuales requieren del fichero .hex... Este fichero, cuando se elige desde
> las preferencias se genera marcando compilar, pero lo guarda en una
> carpeta virtual, la cual genera que cada vez que lo necesitas tienes que
> copiar y pegar en cada modificación, y es incomodo.
>
> ¿Seria posible crear un campo para la hubicación de ese fichero? Así
> sería todo más fácil y no considero que sea muy complejo
>
> Gracias.
>
> Kiko
>
> --
> You received this message because you are subscribed to the Google
> Groups "Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to developers+...@arduino.cc
> <mailto:developers+...@arduino.cc>.

Andrew Kroll

unread,
Mar 21, 2016, 3:58:00 PM3/21/16
to devel...@arduino.cc
It is too bad that the IDE doesn't store stuff under a build directory. That's how I do it.
For example, Mega2560---
(sketchdir)/build/mega-atmega2560/
and in that directory, each library/core/etc goes into a separated directory.
What you end up with is the ability to compile things like the core only once.
Any changes updates the ar archives.
The ar files are then linked in at the end.

What you end up with is a faster compile since you can skip stuff that is already compiled.

What I still want to do here is have a way to cache these ar archives (libraries) globally, I have to do that yet. That way even if you compile another sketch, anything in the core, libraries, etc that have not changed, don't get compiled again and again, which saves even more time.


To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.



--
Visit my github for awesome Arduino code @ https://github.com/xxxajk

atajahangir moshayedi

unread,
Apr 14, 2016, 11:54:37 AM4/14/16
to devel...@arduino.cc
​can any body tell me how i can remove the bug in this program 
im using DUE with the following code to read 4 channel ADC4 my o/p is fluctuating 
any help appropriated in advance 


int tgs1;
int tgs2;
int tgs3;
int tgs4;

void setup() {
Serial.begin(9600);
}

void loop() {
analogReadResolution(12);

tgs1= analogRead(A0);
tgs2= analogRead(A1);
tgs3= analogRead(A2);
tgs4= analogRead(A3);

Serial.print("tgs1=");
Serial.print(tgs1);
Serial.print("\t\t\t");

Serial.print("tgs2=");
Serial.print(tgs2);
Serial.print("\t\t\t");

Serial.print("tgs3=");
Serial.print(tgs3);
Serial.print("\t\t\t");

Serial.print("tgs4=");
Serial.print(tgs4);
Serial.print("\t\t\t");
delay(200); 
}
------------------------------------   
Sincerely yours
Dr.Ata Jahangir .Moshayedi
Ph.D   Robotic  and Electronic
    MSC. Instrumentation
    BE. Power electrical

  • IEEE _ Graduate Student Member 
  • Life Time (LM) member of society of " INSTRUMENTATION  OF  INDIA"
  • Life Time (LM) member of (SPEED)-Society for Promotion of Excellence in Electronics Discipline India 

  • Annual member of Iranian association of electrical  and electronic engineers
--------------------
Post address: DEPARTMENT OF 
ELECTRONIC SCIENCE  
                          University of Pune, 
                           Pune Ganeshkhind, 
                          Pune-411007 ,
                           Maharashtra, (India) 

Phone nos :
+91-20-25699841,+91-20-25691256,+91-20-25601419
E-mail& Web page: 
              moshayed...@ieee.org
Personal :  mosh...@gmail.com,  

" Be less curious about people and more curious about ideas " -- Marie Curie

 نیکو پدری گفت به فرزند خلف             دنیا طلبی به هند و عقبی به نجف

ور زانکه  نه دنیا و نه عقبی خواهی       بنشین به صفاهان که شود عمر تلف 

Shirsha Ghosh

unread,
Apr 14, 2016, 12:33:35 PM4/14/16
to devel...@arduino.cc
which sensor you are using?
You can limit the readings between two functions, using ardduino map() function.
see the below link.

Tom Igoe

unread,
Apr 14, 2016, 3:31:14 PM4/14/16
to devel...@arduino.cc
I find on the ATmega-based boards, putting a 1ms delay between analogRead() calls stabilizes the readings, because it gives the multiplexer attached to the ADC time to stabilize after changing channels. I assume it’s the same on the ARMs,but I haven’t tested it.

Tom

atajahangir moshayedi

unread,
Apr 14, 2016, 10:26:30 PM4/14/16
to devel...@arduino.cc
Dear Shirsha
im using TGS 2620  and i hvae 4 pair .
you think 1 ms dealy is ok?
regards


Shirsha Ghosh

unread,
Apr 14, 2016, 11:42:39 PM4/14/16
to devel...@arduino.cc
Give 5ms-10ms delay(which is negligible in real life situation) and use map() function. the map() function will bound the output with upper bound and lower bound, so that you can easily manipulate the output.

Paul Carpenter

unread,
Apr 15, 2016, 6:21:43 AM4/15/16
to Developers
Firstly this sort of problem is not meant for this group use the forums

Your noise is probably nothing to do with software but expectations and poor circuit

1/ connect unuesed analog inputs to gnd to reduce noise and crosstalk from unused inputs
2/ Keep sensor wiring away from digital and power wiring
3/ If sensor is more than 150mm away from Due, use some form of analog buffer
   look up unity gain op-amp configuration
4/ If RL used for these types of circuits is more than about 1k definitely use a unity gain amplifier
   As total source is starting to get high impedance so as little current flowing stray radiation
   even your body or mobile phone could be injecting noise into the wiring.

There are many other reasons

Please note with that type of sensor unless you have a chamber to calibrate the analog readings for that SYSTEM to KNOWN air mixtures at known temperature and humidity your readings are a BEST guess not an accurate reading, they can give you some form of realtive reading not an ABSOLUTE reading.

Most of these types of sensors have to be heated and stabilise for 24 hours before the readings are usable.

What the noise id depends

atajahangir moshayedi

unread,
Apr 15, 2016, 10:01:41 PM4/15/16
to devel...@arduino.cc
​​Dear Paul  thanks for your replay
firstly for the sending the problem ,  i excused but the main problem is that the feedback  by the forum is very poor i think ardunio team should make a some new way 
 my ckt has the buffer and i will read the gas sensor after that 
the main idea to use the Due is to log the sensor data as a data logger . 
below i send you my code ,   i need to log the  sensor data  with the maximum sample rate  
warm regards and thanks 


float tgs1;
float tgs2;
float tgs3;
float tgs4;

void setup() {
Serial.begin(9600);
}

void loop() {
analogReadResolution(12);

tgs1= analogRead(A0);
tgs2= analogRead(A1);
tgs3= analogRead(A2);
tgs4= analogRead(A3);

Serial.print("tgs1=");
Serial.print(tgs1);
Serial.print(",");

Serial.print("tgs2=");
Serial.print(tgs2);
Serial.print(",");

Serial.print("tgs3=");
Serial.print(tgs3);
Serial.print(",");


Serial.print("tgs4=");
Serial.print(tgs4);
Serial.print(",");

delay(200); 
}


--
​  

indigoredster

unread,
Apr 16, 2016, 12:14:31 AM4/16/16
to devel...@arduino.cc
I'm not an arduino expert yet, but upon cursory inspection I see this:
first, the analogRead(A0) doesn't return a float.
2nd, You should move the A/D setup resolution to the init section otherwise 
you are wasting time re-setting it up in each pass of the loop. 

indigoredster

unread,
Apr 16, 2016, 12:27:27 AM4/16/16
to devel...@arduino.cc

unsigned int tgs1, tgs2, tgs3, tgs4;

void setup() {

analogReadResolution(12);
Serial.begin(9600);

}

void loop() {

tgs1= analogRead(A0);
delay(1);
tgs2= analogRead(A1);
delay(1);
tgs3= analogRead(A2);
delay(1);
tgs4= analogRead(A3);
delay(1);

Serial.print("tgs1=");
Serial.print(tgs1);
Serial.print("\t\t\t");

Serial.print("tgs2=");
Serial.print(tgs2);
Serial.print("\t\t\t");

Serial.print("tgs3=");
Serial.print(tgs3);
Serial.print("\t\t\t");

Serial.print("tgs4=");
Serial.print(tgs4);
Serial.print("\t\t\t");
delay(100); 
}

Reply all
Reply to author
Forward
0 new messages