Simulation software for raspberry pi - Page 1
Forum section: electronics / general

author: Parth
author_rank: Contributor
timestamp: October 29, 2017, 04:51:52 am
content: Hi,I don't have raspberry pi kit. I'm a hobbyist interested in learning about raspberry pi and programming. I have searched on internet. I found the many simulator. I don't know which is best simulator for learning. Please some one recommend me good simulator

author: forrestc
author_rank: Unknown
timestamp: October 29, 2017, 05:16:26 am
content: The question I would have for your is what do you hope to learn?I admit I didn't realize there were simulators out there until I saw your question. Looking at the simulators I could quickly find, they mostly seem to be ways to run the raspberry pi operating system on a PC. Which is good if you want to play with the operating ssytem, but not so good if you are looking to learn about the raspberry pi hardware.Depending on your goals, a raspberry pi simulator might not be the best spot to start.

author: Parth
author_rank: Contributor
timestamp: October 29, 2017, 12:06:05 pm
content: Quote from: forrestc on October 29, 2017, 05:16:26 amI can take two or three months to buy board. that is reasons I want to work on simulator so that I can get at least ideaI have laptop and I think I have to buy monitor with raspberry pi board because I think I can not connect raspberry pi to laptop.All is the matter of cost and money so I am just want to save my time that is reason I want to use simulator later I will work with real hardware

author: forrestc
author_rank: Unknown
timestamp: October 29, 2017, 12:30:34 pm
content: Quote from: Parth on October 29, 2017, 12:06:05 pmMaybe I should ask a different question:What do you hope to do with the raspberry pi?If it's run things like web servers, etc., then just installing a copy of Linux on a PC would allow you to start learning about Linux and run servers and the like before getting going with the raspberry pi. If you want to learn about programming a pi, then you could start with learning languages like Python which are commonly used on the pi. There are lots of options to get this running, quite a few of which are able to run inside windows in a VM.If you're looking to do hardware interfacing/electronics, then I'm not aware of a raspberry pi simulator which would help you out there. The online microsoft one might help, but it seems as if this tool is designed to get you working with the Microsoft Azure IoT hub.Either way, I don't think I'd necessarily do the emulation route. A PI is an ARM architecture product, any place you're likely to run an emulator is going to be an intel platform. You're going to need a failry speedy PC to be able to even reach the performance of a raspberry pi, if it's even possible (the benchmarks I'm seeing indicate it's still going to be very slow). Since the pi is based on debian linux, I'd just install debian, and learn about the command line part of linux. This will give you a head start on the command line part of the pi, since this should be very similar.Edit: removed part of my response not applicable to Parth's edited response.

author: Parth
author_rank: Contributor
timestamp: October 29, 2017, 02:11:02 pm
content: Quote from: legacy on October 29, 2017, 01:08:57 pmMy father has told me. He will buy raspberry pi board for me after two monthsI am familiar with microcontroller. I have been worked with electronic component. I have been programmed micrpcontroller and I have knowledge of embedded c programmingNow I want to use raspberry pi board for internet of things. I want to learn about programming a pi by interfacing sensor. I am totally new for pi and Python. So I want to write and test python program on pi.When I was new for microcontroller. I started with LED blinking program. I want do something like this with raspberry piHardware : raspberry pilanguage : python

author: forrestc
author_rank: Unknown
timestamp: October 29, 2017, 02:24:21 pm
content: Quote from: Parth on October 29, 2017, 12:06:05 pmAs legacy mentioned, you don't need a monitor or keyboard to set up a raspberry pi. In fact, the majority of the pi's I have used don't end up using a monitor or keyboard after the intitial setup. I do happen to have a few monitors and keyboards floating around so I do tend to do the initial setup that way as it's slightly easier, but definitely after setup it isn't needed unless of course whatever you end up using the pi for needs a monitor.Also, note that the video output on the pi is a HDMI output, so many TV's could be used for a monitor at least temporarily. I've done this in a pinch.Back on the simulator.... based on your most recent reply (Which came in while I was talking about it): Other than the microsoft one, and the one at trinket.io/sense-hat, I'm not aware of any simulators which allow you to do simulate the hardware in a way which you would be able to simulate a blinking led. Installing linux and/or one of the other simulators may allow you to play with the internet side of the internet of things connectivity, but not the hardware side.You should think of the raspberry pi as a small linux computer which happens to have some GPIO on it. Learning python itself (instead of focusing on blinking a led) will get you a long ways toward what you want to do, and then when the pi arrives, you'll know the language. Python can be installed on your laptop without any emulation, and there are lots of learning python websites out there.

author: hugo
author_rank: Regular Contributor
timestamp: October 29, 2017, 10:55:43 pm
content: Quote from: Parth on October 29, 2017, 04:51:52 amIn the meantime, until the board arrive, you could do some reading about raspberry pi here :https://learn.adafruit.com/category/learn-raspberry-pi, then start learning python and then do your own projects.

author: rstofer
author_rank: Super Contributor
timestamp: October 29, 2017, 11:55:07 pm
content: The video output is HDMI, maybe you can plug it into a TV. The keyboard and mouse will have to be USB.

author: technix
author_rank: Super Contributor
timestamp: October 30, 2017, 08:16:57 pm
content: Before you actually spend the money, if you intend to use Linux on the Pi, you may want to start by familiarizing with the environment on your computer first. Linux can have a steep learning curve if you start from Windows (a lot shallower if you start from macOS, which itself is UNIX like Linux.)Raspberry Pi's default Linux distribution, Debian with PIXEL UI, is available for x86 and amd64 computers. You can run this PC version on your computer to get familiarized with the environment. As long as you are not touching the hardware or low level kernel stuff, using and programming Linux on a Pi is almost identical to the PC, and in most cases the programming code can be identical and exchangeable. (This extends to macOS to some extent as well.)If you don't have a spare computer, you can use some kind of virtualization software to spawn a VM running Linux, be it Hyper-V if you have 64-bit Windows 10 Pro/Enterprise/Education, or Virtualbox for all other platforms including Windows 10 Home.

author: Parth
author_rank: Contributor
timestamp: November 02, 2017, 11:58:19 am
content: This is list of part that I needRaspberry PiMonitor or TVHDMI cableUSB keyboardUSB mousePower supply8GB SD cardI want to save money, I don’t have Monitor or TV , USB keyboard, USB mouse I am planning to use display and keyboard of laptop for Raspberry Pi. I have searched on internet and I found two software putty and xming. I have downloaded that softwareOne another thing I have WiFi connection so I want to connect Raspberry Pi via wifi connection . I have searched on internet I can do that.Finally I think I need following thingsRaspberry Pi8GB SD cardRj45 cablePower supply adopterif I am missing somewhere please let me know ?

author: tszaboo
author_rank: Super Contributor
timestamp: November 02, 2017, 12:43:05 pm
content: If you are short on money, this is the smallest setup to get you started with:Raspberry Pi Zero(5 EUR) or W (10EUR)Class 10 SD card (about 4 EUR)Micro USB cable (1 EUR?)SD card readerPC with Windows or LinuxThis is really all you need to get started with it, if you are not trying to use the RPI as a computer. Which you can, but shouldn't.

author: Parth
author_rank: Contributor
timestamp: November 02, 2017, 05:17:41 pm
content: Its really getting confuse. I do not understand what I should buy. can you tell me which is necessary things that I should buy and which software I have to download.I want to buy those part which is more important. That's the reason I don't want to buy monitor, usb keyboard, mouse. I want to use laptop instead of these. with this I can save money.Now I am really confuse I don't understand what should I buy and what shouldn't buy. It will be very helpful if you will help me to find right part Please tell me what should I buy ?

author: eliocor
author_rank: Unknown
timestamp: November 02, 2017, 11:08:04 pm
content: @legacy:I think you are overcomplicating things for the OP (Parth):he does not want to spend too much on his RPi, so lets him start with the plain vanilla configuration and, only AFTER he grabs how things work on RPi, THEN he can change the typical configuration as you state.You are only making him confused:he does not need "performances will be increased by different orders of magnitudes": as he clearly stated he wants:- "I want to save money"- "I want to use raspberry pi board for internet of things"- "I want to learn about programming a pi by interfacing sensor"- "I am totally new for pi and Python"- "I want to write and test python program on pi"For such requests he does not need any superperformance computer at all, just a plain RaspberryPi...It is clear you (legacy) are only making confusion to a person who is just starting!He is not a "pro" and I do not think he needs such "high level" suggestions EXCEPT if you give him a really complete and detailed list of ALL of the steps required to follow your otherwise insightful suggestions.But please remember: he is just a newbie (no offense intended!). You can't overwhelm him!P.S.: he wrote "I have searched on internet and I found two software putty and xming": surely on those link he have searched for there are some explanations on how to use putty (BTW it is a good app!): you can't throw the stone and hide your hand... Sometime it is better to follow to the letter (especially the first times) the instructions reported on the official blogs/site of the RaspberryPi than to adventure on unchartered waters.P.P.S.: sorry, English is not my first language and I hope to have not offended anyone!

author: eliocor
author_rank: Unknown
timestamp: November 02, 2017, 11:48:10 pm
content: Quote from: legacySorry to disappoint you, but the first time I used Unix was in 1983 on a VAX 11/780 (AT&T Unix SVR1 and Eunice, a nice Unix emulator)...Using 'ed' as line editor on a Digital LA34*/LA120 (paper) or VT100 (CRT).Much earlier than 'vi'I continued to daily use Unix/Linux since those times.*) nicknamed "the Turing machine" for the slowness of its head!!!!

author: eliocor
author_rank: Unknown
timestamp: November 03, 2017, 12:33:32 am
content: You are not required to have/buy:-Monitor/TV-HDMI cable-USB keyboard-USB mouseJust follow the instructions shown on:http://www.jamesfmackenzie.com/2017/01/02/raspberry-pi-headless-rasbian-install/to use your laptop to connect to your Raspberry PI.

author: brucehoult
author_rank: Super Contributor
timestamp: November 03, 2017, 10:42:10 am
content: Quote from: eliocor on November 02, 2017, 11:48:10 pmI used Eunice in 1983 also. It worked, but VMS was not designed to fork a lot of processes and abandon them -- you got one when you logged on and kept it for your entire session -- which made emulating Unix slow. Eunice cached processes, but still...At one point the sysadmin made an error installing a Eunice update. Some of the utilities, such as "ps" required admin privileges. The VMS version of setuid root. The mistake was he forgot to disable the ability to attach a debugger to those processes. I did that, set a breakpoint in ps, poked about a dozen bytes of machine code into memory (a system call something like "set_current_privs((int64_t)-1, permanent=true)"), ran it, and voila! I was God on that machine.Fun times.

author: brainwash
author_rank: Frequent Contributor
timestamp: November 03, 2017, 12:51:20 pm
content: My gripe is that I don't understand why a rPI is needed at all.To interface sensors you can just get an Arduino-compatible board and write your firmware, controlled from the computer via serial. Then write Python on the computer or whatever you'd like (Processing) to interface with the external board.To make an IoT thing you can use an ESP8266 board, those are around 2-3$ now. It supports micro-Python and there are probably countless examples on how to interface sensors.To learn Linux you can just install Oracle VirtualBox and create or download a virtual machine (/appliance).To learn all of the above, buy the cheapest router that supports OpenWRT. You can compile your own firmware, write code on it, whatever. Heck, I'm sure someone could give you an older one for free.But if you still want to buy the rPi - and be prepared for it - install a virtual machiine with Debian:http://www.osboxes.org/debian/.

author: Parth
author_rank: Contributor
timestamp: November 03, 2017, 04:36:14 pm
content: Quote from: brainwash on November 03, 2017, 12:51:20 pmMost of company work on latest technology. They require hands on experience with RPi python programming. That's the reason I wanted to work on RPiQuote from: brainwash on November 03, 2017, 12:51:20 pmI tried that method but the problem is serial port programming. I have done experiment where one PC is working as server and another PC is working as client. both PC'S connected with same wifi router. so client can access website from server. I was trying to connect microconntroller with sensor at server side but the problem is that I need to activate serial port. I was stuck therehave you done it like this ?

author: brainwash
author_rank: Frequent Contributor
timestamp: November 03, 2017, 05:54:33 pm
content: Which language? What OS (assume Windows)?

author: timb
author_rank: Super Contributor
timestamp: November 03, 2017, 06:04:24 pm
content: Quote from: legacy on November 02, 2017, 11:14:17 pmYou do know that the RPi only has USB2.0 and that said USB link is routed through an onboard hub controller that’s shared with the Ethernet controller, right? The result is a very slow link (even slower if trying to copy files to and from the drive over the network).If you use a Class 10 SD Card, read speeds will always be much faster than a USB based HDD on the Raspberry Pi.

author: Parth
author_rank: Contributor
timestamp: November 03, 2017, 06:12:00 pm
content: Quote from: brainwash on November 03, 2017, 05:54:33 pmI was using window 10. I work only with c programming. I found that I can do it with php or asp.net. I find so much for serial port program. But I could not get success. finally I left because learning many language was very difficult for me

author: brucehoult
author_rank: Super Contributor
timestamp: November 03, 2017, 08:08:38 pm
content: Quote from: timb on November 03, 2017, 06:04:24 pmFor just $5 more, the Odroid C2 is a massively better machine. Proper gigE, fast SD, faster eMMC, fast RAM. Despite the same A53 core and nominally only 25% faster clock rate, it's more like double the speed in practice. And an actual 64 bit version of Linux from Day 1.Harder to find, and not as much community support, unfortunately.

author: Parth
author_rank: Contributor
timestamp: November 05, 2017, 05:50:04 am
content: Thanks. I have already got so much help but still I have only last doubtI know wifi router is not good option but some time we have to compromise with situation that is reason I don't want to connect RPI with personal router. It increase cost. I have free wifi router in my PG and I am planning to connect display of laptop for RPi.I have searched on internet there is information regarding ethernet cable but I think I need only one cable to connect display of laptop to RPIHow to buy correct cable what I need buy micro usb cable or HDMI cable.https://www.amazon.in/s/ref=nb_sb_ss_c_1_4?url=search-alias%3Daps&field-keywords=raspberry+pi+3&sprefix=rasp%2Caps%2C297&crid=2JIZT1DFFQOJTwhich one is best first or second ?

author: eliocor
author_rank: Unknown
timestamp: November 05, 2017, 11:21:28 am
content: Don' t worry too much regarding using WiFi: you are just starting to learn how to use your Rpi.If everything works correctly, you will got no trouble at all in your experimentations.IF, for some particular reasons, you will encounter some problems, you will LATER can try the network cable solution.

author: TomS_
author_rank: Frequent Contributor
timestamp: November 05, 2017, 12:56:18 pm
content: Quote from: Parth on October 29, 2017, 02:11:02 pmYou dont need a Raspberry Pi to start programming Python. Download Python from their website and install it on your current laptop/computer and off you go.You then have the next 2 months to familiarise yourself with Python before trying to also mix GPIO and other peripherals in to the mix.I believe Raspberry Pi also has serial console enabled by default, or it can be enabled very easily by modifying a file on the boot partition of the SD card. You can then talk to the Raspberry Pi over serial without needing an external monitor or keyboard or mouse. At the very least you can use this to enable SSH, after which the serial port on the Raspberry Pi can be freed up for your projects.There are tons of videos on YouTube that can help you get started.

author: brainwash
author_rank: Frequent Contributor
timestamp: November 05, 2017, 05:16:57 pm
content: Quote from: Parth on November 03, 2017, 06:12:00 pmPython is probably easier to learn than C, just follow some examples online:https://playground.arduino.cc/Interfacing/PythonIf you know Python you are probably well-equipped to do IoT stuff on the rPI.You should also research what kind of sensors you want to interface with. Depending on their protocol/wiring you might not be able to interface with them directly from the Raspberry and still need to use another component (Arduino-like) to get data.

author: Parth
author_rank: Contributor
timestamp: November 12, 2017, 09:58:53 am
content: Hi AllToday I am very happy, got my RPI board. I have attached picture of my board. May be within three day's I will have Micro SD card and ethernet cableany suggestion to utilize the time