Arduino/Amarino LM35 temperature regulation + simple Android APK - Java for Android App Development

Hello,
I need to create a simple temperature regulation with LM35 sensor based on Arduino and Bluetooth module, connected with Android phone. Regulation is really simple since there are only 2 logic options: if temperature on LM35 is above threshold, fan turns on in order to cool down the system. If temperature is below threshold, don't do anything.
I have already found a program which does basically the same thing here dl.dropboxusercontent.com/u/76467041/LM35%20Temp%20Sensor%20Arduino%20Code.txt (except that I don't need the servo part), but it doesn't include Android application and since I have basically zero skills with Android programming, I couldn't get it done by myself.
I've also found a program which reads temperature from LM35 here: buildcircuit.com/amarino-experiment-temperature-sensor-data-and-led-controller-on-amarino-interface/ . It already comes packed with Android Application, but unfortunately does not include any regulation.
What I'd actually need to do is use the first program and write an app for it. App should display current temperature in degrees celsius and have input field for desired temperature.
I believe that this is a breeze for most of you guys, but I've never been really programming before so you may imagine how difficult that is for me. I've already read some tutorials for Arduino and actually managed to get Multi Color Lamp demo project working fine but because of recent sickness and school deadline for this project, I'm in a "little" hurry now.
May I ask for your help?
Thanks in advance, I highly appreciate it!

Related

finger friendly API

Hi guys. I see a lot of "finger friendly" contact managers apps theese days.
Which API are you using ? I'm planning to work on it for sms reading and any help would be great.
Hi,
Personally, for contact manager, I'm working on ... my own framework, but that's mostly to allow decent performance and animation effects.
Basically it's a composite pattern, every control is based on LightControl base class which provide basic interraction and drawing.
The drawback of this approach is that text input control are rather complex to do, the big advantage is that layout, drawing are free are control aren't tight in a specific shape.
What are your requirements?
Hi, I'm working on .NET 2005 (usually VB but I also have knowledges of C) and I'm developing for a Prophet and a Trinity
yes.. but what are your requirement regarding the framework? what do you want to do that classic winforms won't provide you?

Need help with .net graphics. sample project attached

I am trying to do some custom controls, I've done some mobile work lately, but just typically using standard controls and an owner draw list. I want to try to do more "custom" drawn stuff.
In this project I'm trying to somewhat mimic the htc random access that will support multiple "lists" for this new project.
I'm new to the graphics (2d) stuff and need a bit of help. In this sample project I want to be able to draw the letter in the center of the screen, I will have a box behind it (gradient eventually I hope) so I need to be able to draw to the screen since its outside of the controls bounds. Thats no problem, but how do I clear what I've drawn?
here is a link to my code, if someone could please take a look.
where you should look is in the RandomAccess class, in DrawStringbox
http://createdevcode.com/code
thanks a million!
been trying to find some examples on the web, found one in full .net that sorta does what I want but of course I don't have access to all the PMEs in compact framework.
again, any help would be apprecidated on how I can draw to a "layer" on top of my form and have the form paint properly once I want to get rid of that layer and not have any left over graphics on top of any controls.

Under Dev - CAD application for Android

My team has been vigorously working on a CAD application for android. I will post some screenshots of the tool if anyone is interested, so please let me know.
It's currently being tested and developed using a Motorola Droid running 2.0.1. Although we can run the emulator and test different screens using it, we find great difficulty in knowing if the "feel" is nice on a smaller screen.
Anyway - current features that are working:
Objects: Line, Circle, Ellipse, Rectangle, 3 Point Arcs, Text Areas
Drawing Modes: Orthographic (including 45s), Grid On Off, Snap Mode On Off (Endpoints, Centerpoints, Midpoints, Quadrants)
Other Things: Undo, Redo, Erase, Modify (reshape & move), Pan, Layering System, Linetypes, Colors & Text Sizes.
In The Works: Zoom (Option for Pinch), Configurable Toolbar (Add/Remove Tools), Export to DXF & Linetypes.
We are looking for a few people that would be willing to get in on a "PRIVATE Beta" to assist us with the continued development. We have our day jobs, so this is a project that when we have time to work on, we do. However, we do spent quite a bit of time working on it .
Anyway - We want to be picky about the testers, simply because we need to have a nice round group of people. Not plumpy, just round. We need a couple guys that are good with input, finding problems, etc. And we also need a few that dont know anything about CAD and can help us to see if the average joe can figure it out.
We also need a couple good mathmeticians or programmers. Or even one would do. We are having some trouble computing certain boundaries (ellipses to be more precise) that we need to understand so that we can build in other commands like Trim or Extend. (Plus our select option on ellipses is a bit hokey, but knowing how to find an ellipse will solve that for us)
For now, the only assistance I can give you is through the board here, and help you get started. The tutorial will come soon, once we get the basics figured out as to how we want to make it really work.
Anyway - To make a long story even longer - let me know if you might be interested. I would be more than happy to post some screenshots if you like of its current state. So let me know if you are interested.
Thank you very much for sticking through the long a$$ read, or even for skipping through to the "thanks" is enough for me.
That being said - LMK! Thanks!
A capacitive touch screen doesn't seem a good candidate for controlling a smooth CAD experience. However on second thought, when coupling together this technology with a trackball, the possibilities really open up. Harness these well and I know you'll be onto something here.
Post some screens to show everyone the progress of your development and I'll let you know if I'd be interested in testing.
Cheers
Well if your looking for anyone with CAD knowledge, I have a degree in engineering with CAD, and Pro Engineer. I don't have much time to devote to beta testing, but I do have time every now and then. I run a ION with 1.6. Good luck on your software!
(Unfortunately - my account has not been enabled for posting outside links or images - so this is the best i can do for you until that is enabled)
talon-designs.net/android/andcad/11.jpg
Above is a screen shot with a couple drawn elements, and the right side of the toolbar tools.
talon-designs.net/android/andcad/09.jpg
Above is a screen shot with a couple drawn elements, and the left side of the toolbar tools.
There are a handful of more screenshots posted up on my site, the links are as follows:
talon-designs.net/android/andcad/01.jpg - Layer select screen
talon-designs.net/android/andcad/02.jpg - File Operations
talon-designs.net/android/andcad/03.jpg - Display Settings
talon-designs.net/android/andcad/04.jpg - Samle Help Screen (Line)
talon-designs.net/android/andcad/05.jpg - Snap Settings
talon-designs.net/android/andcad/06.jpg - Color Picker
talon-designs.net/android/andcad/07.jpg - Snapping to Midpoint
talon-designs.net/android/andcad/08.jpg - Selection of Ellipse
talon-designs.net/android/andcad/10.jpg - Text Input Screen
That should be plenty of screens to keep interest.
@Lancealot - Thank you very much, and I completely agree, that when we started this, there was some doubt as to how precise you could actually be using a "touch based" screen. The good news, through playing with it, and given ability to set tolerances based on the size of your "touch area" as well as snapping options, we found that you can actually be quite precise.
Ill fiddle with it a little today, put together a drawing and give you a nice example of something that can be made with this.
Keep in mind, this is a work in progress, and although much of the functionality that is currently built into the tool, is at a "finished" state, there is certainly room for input and comments from others that may find use in this tool.
Anyway - here are the screenshots as promised, let me know if you have any further questions.
(Again - sorry about the inconvenience on the links)
(edit to update image types to jpg instead of png)
@zul8er - we are certainly interested in your input. Check out the screenshots and let me know if you are still interested. We dont need a huge commitment, but anything that you might be able to provide would certainly be a big help.
Android 1.6 is the minimum OS currently supported. We need to do some work on the graphics to go as far back as 1.5 to compensate for screen size, and we intend on doing so.. Just not at this current time.
I would be interested in trying out your CAD program. I've been doing CAD for ove 10 years now, started with AutoCAD but have been using Solidworks for the last 8 years.
In addition to using the touch screen for input, will you be able to enter X and Y coordinates using a keyboard or virtual keyboard?
What format will it save the files? DXF, JPG, or what?
Noob Squared said:
I would be interested in trying out your CAD program. I've been doing CAD for ove 10 years now, started with AutoCAD but have been using Solidworks for the last 8 years
Click to expand...
Click to collapse
Seems there are more and more of us creeping out of the woodwork on a daily basis
Noob Squared said:
What format will it save the files? DXF, JPG, or what?
Click to expand...
Click to collapse
Currently the file format is a proprietary format. But we are currently (today actually) working on saving out to a DXF format to be able to reload your files into AutoCAD or other supported softwares.
The ability to import is also in the works, but will require some massaging on the users end to make sure the DXF file is not binary etc. (MTEXT may not be supported either)
Noob Squared said:
In addition to using the touch screen for input, will you be able to enter X and Y coordinates using a keyboard or virtual keyboard?
Click to expand...
Click to collapse
We have toyed with the idea of being able to put in specific dimensions on objects, and also work with x/y coords, but at this time, it only supports point to point drawing. We arent completely sure if we intend on building a "FULL ON CAD" application, or an application for people to use to simply get an idea of what they need to do for a job. The other key, is to keep the application at a price range that is reasonable for people. Most "PocketCAD" applications run around 50 bucks a copy - and rightfully so. To keep the tool at a reasonable range (below 10 or 15 dollars) it may need to be a bit lighter weight than those. Most people cringe at a 2.99 app..
IF we could devote our time 100% i am sure we could build a really nice full blown cad app Unfortunately as with most of us, the day job prohibits some of that time.
Its a WIP I'll put you on the list. Thanks for the input.
Are you looking for beta testers?
Hi, are you looking for beta testers. I'm a long year CAD user, and I'm sure I can help with the app development.
[email protected]
Have you tried using some of the java based cad software as a source for your project? There are many and some might be open source.
http://sourceforge.net/projects/ycad/
Yeah I am still interested. It will be neat to play with and see how it works. The coordinate input is a good idea, also, ever play with Pro Engineer? They have a cool way of building an initial drawing. You just sketch, regen, and then input your dimensions to make the object to your liking. Makes things a lot faster and easier to edit a shape if changes need to occur.
I dont know how in depth you want to go, or if that idea can be used.
My email is [email protected]
Nice
Give me a couple more days to get a good product out for you guys to test. Currently we are cleaning up a few little "we'll get that later" issues, and should be good to go by mid/late next week.
Thanks for providing the contact info, I will shoot you a message through email shortly.
Thanks agian for the interest.
@zul8er: nice. Look forward to hearing how you like the feel of it. I havent had a chance to play with ProE, as AutoCAD has been my forte for the last couple decades. Ill see if i can any kind of demo for ProE, and get an idea of how it works. Who knows Anything to make it easier for everyone is a good thing.
But yah - the indepth thing is the issue. We keep tossing with ideas and putting them "on the list" in case people start asking for them. I guess it just depends on how people really want to use this tool. (and of course, how much time we can continue to devote to it) - bah i hate day jobs
I enjoyed the screen shots that were posted. Any idea whether you guys will support rendering/raycasting, or physics with inverse kinematics? Either way it looks great; Sign me up!
haha Not sure if we are going to go the IK way. Maybe as a different project, something more suited to 3D, but for this app, we are only intending on running the 2D route.
My lack of knowledge about the OpenGL portion, really limits us with regards to 3D implementation. I spent a good 3 days just trying to get ahold of loading in a 3D model.. Still never got there (or would have probably released a 3D model viewer first).
At any rate, its hard to say where this will go. It mostly depends on the overall interest i suppose. Its certain that the sky would be the limit, if time were as available as the sky
But cool.. Glad I was able to keep your interest.
Currently (as I type even) I am finishing up all of the help documentation for the app, the inline tutorial, and what not.. A couple more days on the file handling (DXF in particular) and should be set to go for a BETA run. ('couple more days' - like we all havent heard enough of that)
@lancelot - can you send me your email address via private message? That way I can do the BETA communications through there (link to files etc). You are welcome to email me as well:
support AT talon-designs.net
cheers!
Hey, I'm a high school student that has just started learning CAD, does that count as average Joe? I'd love to help beta test, I really want android to overpower iPhone 3.0 lol. My e-mail is [email protected] I use g1 with cyanogenmod 1.6...so idk if that qualifies. But anyways, Good luck!
This really sounds promising. In the last few weeks, I really had the need for a good drawing software on my mobile device. But my Tytn II lacks of power. As I soon will get the Desire, I will hopefully have a quite powerful device for all day use (my Tytn II really sux atm). And because I have the re-occurring need of a drawing app, this could be it.
I mean I don't need it for simple drawing, but for constructing things CAD style and on the go Graphics of furniture or something with measures and all that stuff.
Hey guys.. just wanted to pass you an update on status (which is so much more than I seem to be getting from Verizon on the 2.1 update).
Small rant, but its done now.
Ok - status..
DXF Export is working now, supporting layers, linetypes, colors, and elements throughout the drawing. Am having some issues with getting ellipses to export via DXF (and im not alone - faulty specs are at fault), and that combined with the other issues regarding the math behind finding ellipse edges, we decided to comment out the ellipse alltogether for now. Not that it wont be back, but having so many rules with "you can do this to anything - except an ellipse" left us with no other choice.
It's coming back, just not right now.
We have saving and opening completed (simple proprietary ascii format, but it works for what we need it to do).
Zoom is currently partially working (difficult to complete the recalculation on the elements, but its really close) touch events for zoom are coming up as well. Maybe a pinch zoom even, considering that all devices are getting the 2.0+ upgrade - but we will see.. We dont want to keep anyone excluded from being able to use the tool.
@Balrog82 - we have definately taken this tool a long way since its initial conception. We hope to be able to bring more features that are more "CAD Specific" to the application, and will if it becomes a tool that gets used. We want to release it initially as a "basic" drafting tool, and see what kind of input we get. If we see that a lot of people are using it, and would like the ability to put in dimensions the same way that cad does (within limits) we will certainly look into it.
That being said - I hope the tool is still something you would be willing to try out. I find a lot of enjoyment with working with a tool at its early conception (started using paint shop pro at version 1.42) and now its on to version 14 or something and owned by corel. I just kinda get into that sort of thing, and hope that you all will do.
Good thing is, we hope its a draw to the tool, we plan on releasing it at the market both as a free version (no saving abilities) and a full version at a low price. As the tool grows, the price may increase a bit.. Keeping of course the original buyers at a place that they can keep updating the software at no cost to them. We think that will help the advancement and development of the tool quite a bit.
Anyway - It is right around the corner for initial testing. Please to all interested - send me a PM with your contact information (just an email would be great) I am going to see if i can start a private discussion here to invite you all to as well.
@Lancealot - i got your PM.. Am very happy that you are interested in helping. Expect to hear from me again soon..
Until we can see a working model of this app, I thought I would throw out an app that has some great drawing capabilities. The paid was is called "Picso" by Tiki Move, but I used the free version to try out; it's called "Picso Lite".
It's not a CAD app, but it's different from the other Paint apps on Android in that it has tools the other ones don't. It has the usual tools a CAD user would need, such as Rectangles/Squares, Circles/Ellipses, and Lines. You can change the colors and widths of these entities.
What I like about your program is that it has snaps, and the tools are on the bottom of the screen so they are easy to get to: /talon-designs.net/android/andcad/07.jpg
A feature Picso needs is a Zoom tool so you can zoom in to an area and draw whatever you need to and then be able to zoom full screen. It also needs a text tool. Since there is no dimension tool, you could put a text for the dimension.
P.S.,
I want to try your app, but I am only posting this to show how someone else has put these tools on their app and also to have a comparison on ease-of-use. One other thought, you mentioned the files your CAD app will create will be proprietary file types. Will you be able to save-as .jpg or .png so you can email or text-message a sketch to someone? That way if your on-site you will be able to send someone back at the office whatever it is to explain your ideas, and also they would not have to have an Android phone to view it.
Idea sounds great. Good luck with it!
Sorry for being away for so long.. but we had something going on that we had to attend to..
http://developer.att.com/developer/index.jsp?page=event&id=6.3_v1_9700324
More news as it allows.
Android Category Winner
Talon Designs, AndCAD
This application allows users to create simple geometric shapes, combined with notes, to describe plans associated with the art, architecture, engineering and manufacturing industries. Many of the tools familiar to CAD users are incorporated into this utility, meaning that fluent CAD users will feel right at home using this tool. However, the interface for this tool is simple enough for even the most novices of users to understand. This enables certain users (Contractors, etc) to be able to take notes while on a job site and associate them with vector elements within the drawing.
talondesigns said:
Sorry for being away for so long.. but we had something going on that we had to attend to..
More news as it allows.
Click to expand...
Click to collapse
AT&T Open Call-Apps for All! Contest
Thank you to all the participants in the 2010 AT&T Open Call—Apps For All! Contest. This year's contest was filled with many great entries. AT&T reviewed over 90 applications this year ranging from games to business applications. The winners from each category will receive $10,000 and co-marketing opportunities with AT&T.
Click to expand...
Click to collapse
Did you get $10,000?

Any ideas on how to take over the screen

Hello everyone!
I'm researching a little bit for a project at my university. I've got loads of books to educate myself, but instead of just going through them from the very beginning I would like to better orient myself. Any insights you might have would be very appreciated!
Basically I'm thinking about a way to make the screen respond to what's happening to the phone, independently of the app running in the foreground at any given moment. For example
the phone drops under the table where it's dark and the phone's screen begins flashing to make it easy to find,
you tap the side of the phone, or swirl it around playing a game, and the screen tints itself red giving an impression of taking in some damage
Obviously this would have to be an app connected for example to the accelerometer, able to modify or overlay what's currently being displayed. Is that stuff even possible?
I'm not expecting a solution here Just some brainstorming ideas that would send me in the right direction. Names of classes, sections of documentation, stuff like that. Thank you!
Do you look for ideas on how to overlay the screen? That's really easy. Look for WindowManager and System_Alert_Window.
But I don't know how you could code the other thing. For example a few devices have a light sensor which you can use - but for more complex actions this will be difficult.
Thank you EmptinessFiller I´m not really looking to launch popups.
I´m looking for a way to tap into the software or hadrware renderer and for example adjust brightness or tint the entire screen. Something my own, buggy CAT B15 does once in a while when I turn hardware accelleration on (it paints every interface item in a funny colour).
This would pertain more towards modifying the OS itself and creating a customized version of Android
Read this article a while ago whilst looking for stuff on surfaceflinger...might be of use to you....
http://jsharkey.org/blog/2010/07/01/android-surfaceflinger-tricks-for-fun-and-profit/
Sent from my AllianceROM'd S5
Excellent Goldie, thank you very much. That´s exactly the type of pointer that i needed!

[Q] Help in developing Android applications.

Hello everyone, I hope you are fine.
I want to make an inquiry about android application development, because I need to create an application that can capture the battery consumption in smartphone, and read the basics and programming in Java but still not know where to start, if anyone have idea of codes that serve me, help me sources, or any type of information related to this topic, I appreciate it.
I should design the application should look like Battery Mix Battery or Monitor Widget.
Greetings.
L2008 said:
Hello everyone, I hope you are fine.
I want to make an inquiry about android application development, because I need to create an application that can capture the battery consumption in smartphone, and read the basics and programming in Java but still not know where to start, if anyone have idea of codes that serve me, help me sources, or any type of information related to this topic, I appreciate it.
I should design the application should look like Battery Mix Battery or Monitor Widget.
Greetings.
Click to expand...
Click to collapse
Assuming you understand basic Android app development, I recommend you give this a solid read-through. It has some very helpful info on how to get battery level, and how to monitor it, or even have some code ran when the battery level has changed.
http://developer.android.com/training/monitoring-device-state/battery-monitoring.html#MonitorLevel
As stated in the documentation, constantly monitoring the battery will more than likely have a larger battery-consumption rate than a normal app. I think you should use a time:consumption ratio within a service to monitor and display battery usage. I haven't specifically dived into this myself, but here is a basic idea:
1) Get the battery charge level, as well as the time (or possibly the entire date using Calendar class, but I doubt this amount of precision is necessary)
2) Save the battery level, and the time it is retrieved at this level. SharedPreferences is a quick and easy way to integrate persistent data into your app.
3) Using BroadcastReceiver, you can run some code when the battery level has changed (saving charge level, how much time it took to discharge that amount, and doing your calculations/displaying info), as well as when the device has been plugged in or unplugged.
If anyone has some better ideas, please share or improve on mine. I'm still a beginner myself in many ways (Receivers and Services being relatively unfamiliar to me) and constructive criticism is welcomed.
This should at least give you a solid start. Depending on what else you are aiming to build into your application, I may be able to help. I'm not able to get to my computer right now due to moving into a new household, but I can try to point you in the right direction.
Happy coding!

Categories

Resources